Commit 469778ae authored by Ralf Habacker's avatar Ralf Habacker

Fix 'class diagram: class-box not resizable'.

ClassifierWidget::shape() should use the current widget
size instead of the size of the contained text.

Thanks to imeelmax at yahoo.com for reporting this bug.

BUG:381730
FIXED-IN:2.22.3 (KDE Applications 17.04.3)
parent efd2efb3
......@@ -887,11 +887,7 @@ QPainterPath ClassifierWidget::shape() const
path.addEllipse(rect());
return path;
}
#ifdef ENABLE_WIDGET_SHOW_DOC
QSizeF mainSize = rect().size();
#else
QSizeF mainSize = calculateSize(false);
#endif
QSize templatesBoxSize = calculateTemplatesBoxSize();
qreal mainY = 0.0;
if (templatesBoxSize.height() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment