summaryrefslogtreecommitdiffstats
path: root/source/kde/patch/calligra/calligra-2.9.11-gcc6_arm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/patch/calligra/calligra-2.9.11-gcc6_arm.patch')
-rw-r--r--source/kde/patch/calligra/calligra-2.9.11-gcc6_arm.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/kde/patch/calligra/calligra-2.9.11-gcc6_arm.patch b/source/kde/patch/calligra/calligra-2.9.11-gcc6_arm.patch
new file mode 100644
index 000000000..2b1271c07
--- /dev/null
+++ b/source/kde/patch/calligra/calligra-2.9.11-gcc6_arm.patch
@@ -0,0 +1,12 @@
+diff -up calligra-2.9.11/libs/flake/KoSnapStrategy.cpp.gcc6_arm calligra-2.9.11/libs/flake/KoSnapStrategy.cpp
+--- calligra-2.9.11/libs/flake/KoSnapStrategy.cpp.gcc6_arm 2016-02-02 13:53:15.000000000 -0600
++++ calligra-2.9.11/libs/flake/KoSnapStrategy.cpp 2016-02-08 09:12:39.452896965 -0600
+@@ -181,7 +181,7 @@ bool ExtensionSnapStrategy::snap(const Q
+ Q_ASSERT(isfinite(maxSnapDistance));
+
+ const qreal maxDistance = maxSnapDistance * maxSnapDistance;
+- qreal minDistances[2] = { HUGE_VAL, HUGE_VAL };
++ qreal minDistances[2] = { (qreal)HUGE_VAL, (qreal)HUGE_VAL };
+
+ QPointF snappedPoints[2] = { mousePosition, mousePosition };
+ QPointF startPoints[2];