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

--- Comment #1 from Jose <[email protected]> ---
I fixed the problem changing two source code lines in activitywidget.cpp.

diff --git a/umbrello/umlwidgets/activitywidget.cpp
b/umbrello/umlwidgets/activitywidget.cpp
index aa84bb809..07a9ce6ef 100644
--- a/umbrello/umlwidgets/activitywidget.cpp
+++ b/umbrello/umlwidgets/activitywidget.cpp
@@ -194,8 +194,8 @@ void ActivityWidget::paint(QPainter *painter, const
QStyleOptionGraphicsItem *op
             const QFontMetrics &fm = getFontMetrics(FT_NORMAL);
             const int fontHeight  = fm.lineSpacing();
             int textStartY = (h / 2) - (fontHeight / 2);
-            qreal xRatio = qreal((h * 60.0) / w) / 100.0;
-            qreal yRatio = 0.6;
+            qreal xRatio = qreal((h * 60.0) / w);
+            qreal yRatio = 60;
             painter->drawRoundedRect(QRectF(0, 0, w, h), xRatio, yRatio,
Qt::RelativeSize);
             painter->setPen(textColor());
             painter->setFont(UMLWidget::font());

It seems that the developer that "Fix using deprecated api" when using
"drawRoundRect" in commit afa7dd5ac256e3022e38065ee08231ba877edf55 introduced a
division by 100 that makes the ratio too small.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to