summaryrefslogtreecommitdiffstats
path: root/umbrello
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2023-06-02 20:49:50 +0300
committerDenis Kozadaev <denis@dilos.org>2023-06-02 20:49:50 +0300
commit4dabbe71b09383cba554e9338c059e5ed3d54e6c (patch)
tree6e3ad24375489566d6d4cfdff5177180cd4f2663 /umbrello
parent9afce99921749edee7de137877a7898742bc93b5 (diff)
downloadtdesdk-4dabbe71b09383cba554e9338c059e5ed3d54e6c.tar.gz
tdesdk-4dabbe71b09383cba554e9338c059e5ed3d54e6c.zip
SunOS cosmetic changes
Signed-off-by: Denis Kozadaev <denis@dilos.org>
Diffstat (limited to 'umbrello')
-rw-r--r--umbrello/umbrello/associationwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/umbrello/umbrello/associationwidget.cpp b/umbrello/umbrello/associationwidget.cpp
index 9c5f7ba4..0e2ec525 100644
--- a/umbrello/umbrello/associationwidget.cpp
+++ b/umbrello/umbrello/associationwidget.cpp
@@ -1893,7 +1893,7 @@ void AssociationWidget::constrainTextPos(int &textX, int &textY,
const int y0 = p0.y();
const int x1 = p1.x();
const int y1 = p1.y();
- double r = sqrt((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)) / 2;
+ double r = sqrt((double)(x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)) / 2;
if (textWidth > r)
r = textWidth;
// swap textCenter{X,Y} to convert from TQt coord.system.