We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1ea45c commit 0aa3ca3Copy full SHA for 0aa3ca3
src/core/qgsclipper.cpp
@@ -25,9 +25,13 @@
25
26
// But the static members must be initialised outside the class! (or GCC 4 dies)
27
28
-const double QgsClipper::MAX_X = 30000;
29
-const double QgsClipper::MIN_X = -30000;
30
-const double QgsClipper::MAX_Y = 30000;
31
-const double QgsClipper::MIN_Y = -30000;
+// Qt also does clipping when the coordinates go over +/- 32767
+// moreover from Qt 4.6, Qt clips also when the width/height of a painter path
+// is more than 32767. Since we want to avoid clipping by Qt (because it is slow)
+// we set coordinate limit to less than 32767 / 2
32
+const double QgsClipper::MAX_X = 16000;
33
+const double QgsClipper::MIN_X = -16000;
34
+const double QgsClipper::MAX_Y = 16000;
35
+const double QgsClipper::MIN_Y = -16000;
36
37
const double QgsClipper::SMALL_NUM = 1e-12;
0 commit comments