summarylogtreecommitdiffstats
path: root/std-abs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'std-abs.patch')
-rw-r--r--std-abs.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/std-abs.patch b/std-abs.patch
new file mode 100644
index 000000000000..2ce0d59ee929
--- /dev/null
+++ b/std-abs.patch
@@ -0,0 +1,11 @@
+--- OpenBoard-1.3.4/src/frameworks/UBGeometryUtils.cpp 2016-09-19 03:58:36.000000000 +0200
++++ OpenBoard-1.3.4-moved/src/frameworks/UBGeometryUtils.cpp 2016-12-06 11:38:53.067353778 +0100
+@@ -188,7 +188,7 @@
+
+ qreal radiusLength = startRadius.length();
+ qreal angle = 2 * asin(width / (2 * radiusLength)) * 180 / PI;
+- bool overlap = abs(spanAngleInDegrees) > 360 - angle;
++ bool overlap = std::abs(spanAngleInDegrees) > 360 - angle;
+ if (overlap)
+ spanAngleInDegrees = spanAngleInDegrees < 0 ? -360 : 360;
+