You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
641 B
14 lines
641 B
Index: tdesdk/umbrello/umbrello/associationwidget.cpp
|
|
===================================================================
|
|
--- tdesdk.orig/umbrello/umbrello/associationwidget.cpp
|
|
+++ tdesdk/umbrello/umbrello/associationwidget.cpp
|
|
@@ -1893,7 +1893,7 @@ void AssociationWidget::constrainTextPos
|
|
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.
|