[umbrello] [Bug 452702] Curly brackets disappear on python import

Oliver Kellogg bugzilla_noreply at kde.org
Sun Apr 17 23:18:48 BST 2022


https://bugs.kde.org/show_bug.cgi?id=452702

Oliver Kellogg <okellogg at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED
   Version Fixed In|                            |2.34.70 (KDE releases
                   |                            |22.07.70)
      Latest Commit|                            |https://invent.kde.org/sdk/
                   |                            |umbrello/commit/129462a49a0
                   |                            |943ec6925f35d93ec55a80114b1
                   |                            |59

--- Comment #1 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit 129462a49a0943ec6925f35d93ec55a80114b159 by Oliver Kellogg.
Committed on 17/04/2022 at 22:18.
Pushed by okellogg into branch 'master'.

Fix "Curly brackets disappear on python import"

umbrello/codeimport/pythonimport.cpp function skipBody
- Add bool dictInitializer initialized to false.
- In while-loop :
  - If token is "}" then
    - if dictInitializer is true then append '}' to body and set
      dictInitializer false;
    - move braceNesting related code to else-part of this if-statement.
  - If token is "{" then
    - if previous token is "=" then append '{' to body and set
      dictInitializer true;
    - move braceNesting related code to else-part of this if-statement.
FIXED-IN: 2.34.70 (KDE releases 22.07.70)

M  +17   -5    umbrello/codeimport/pythonimport.cpp

https://invent.kde.org/sdk/umbrello/commit/129462a49a0943ec6925f35d93ec55a80114b159

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list