summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Pfau2016-06-22 16:42:11 +0200
committerSascha Pfau2016-06-22 16:42:11 +0200
commit2b2ea8a7f8c7f17d58068ab9d86b08e66ea933de (patch)
treeba6b2fecd95720f3714323ae3b83fba3fa31afce
parent222d83f9ab52bd9fc46ce9ad9f8e6e7521e66b9d (diff)
downloadaur-2b2ea8a7f8c7f17d58068ab9d86b08e66ea933de.tar.gz
patched namespace for abs function
-rw-r--r--fix_std_cmath.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/fix_std_cmath.patch b/fix_std_cmath.patch
new file mode 100644
index 000000000000..e70a1cf5392b
--- /dev/null
+++ b/fix_std_cmath.patch
@@ -0,0 +1,11 @@
+--- src/editor/items/BaseItem.cpp.org 2014-03-14 23:52:28.000000000 +0100
++++ src/editor/items/BaseItem.cpp 2016-06-22 16:25:33.976238867 +0200
+@@ -259,7 +259,7 @@
+ if ( !QRectF(line[i1],line[i2]).normalized().contains(newPos) )
+ continue;
+
+- if (abs( distancePointToLine(newPos, line[i1],line[i2]) ) < minDist)
++ if (std::abs( distancePointToLine(newPos, line[i1],line[i2]) ) < minDist)
+ {
+ insertPoint(i2,newPos,line);
+ return true;