diff -r 6a042a54e0f7 -r 385f60c94548 eric6/Graphics/UMLClassDiagramBuilder.py --- 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