eric6/Graphics/UMLClassDiagramBuilder.py

changeset 8217
385f60c94548
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/Graphics/UMLClassDiagramBuilder.py	Sat Apr 10 17:54:58 2021 +0200
+++ b/eric6/Graphics/UMLClassDiagramBuilder.py	Sat Apr 10 18:31:17 2021 +0200
@@ -180,19 +180,19 @@
             for rect in generation:
                 if rect.bottom() > currentHeight:
                     currentHeight = rect.bottom()
-                currentWidth = currentWidth + rect.right()
+                currentWidth += rect.right()
             
             # update totals
             if currentWidth > width:
                 width = currentWidth
-            height = height + currentHeight
+            height += currentHeight
             
             # store generation info
             widths.append(currentWidth)
             heights.append(currentHeight)
         
         # add in some whitespace
-        width = width * whiteSpaceFactor
+        width *= whiteSpaceFactor
         height = height * whiteSpaceFactor - 20
         verticalWhiteSpace = 40.0
         

eric ide

mercurial