summaryrefslogtreecommitdiffstats
path: root/dilos/core/tdesdk/debian/patches/dilos.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dilos/core/tdesdk/debian/patches/dilos.patch')
-rw-r--r--dilos/core/tdesdk/debian/patches/dilos.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dilos/core/tdesdk/debian/patches/dilos.patch b/dilos/core/tdesdk/debian/patches/dilos.patch
new file mode 100644
index 000000000..d78ce6072
--- /dev/null
+++ b/dilos/core/tdesdk/debian/patches/dilos.patch
@@ -0,0 +1,13 @@
+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.