summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2010-03-08 10:52:20 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2010-03-08 11:04:20 (GMT)
commitff9f3fc24c57254b150c1afba2e5883da8ed2b83 (patch)
tree1a97a523dc62b653e7be642518fc416271bd2dbd
parent7142fbe52cfca2887cb8ee083d4d91c35ef249f8 (diff)
downloadQt-ff9f3fc24c57254b150c1afba2e5883da8ed2b83.zip
Qt-ff9f3fc24c57254b150c1afba2e5883da8ed2b83.tar.gz
Qt-ff9f3fc24c57254b150c1afba2e5883da8ed2b83.tar.bz2
Prevent QRegion from crashing on large coordinates.
Since we don't clip the x-coordinates that end up in the edge table of the QRegion rasterizer, we need to extend the coordinate range. Task-number: QTBUG-7699 Reviewed-by: Gunnar Sletta
-rw-r--r--src/gui/painting/qregion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp
index 614d2c0..bea2b6e 100644
--- a/src/gui/painting/qregion.cpp
+++ b/src/gui/painting/qregion.cpp
@@ -3134,8 +3134,8 @@ SOFTWARE.
************************************************************************/
/* $XFree86: xc/lib/X11/PolyReg.c,v 1.1.1.2.8.2 1998/10/04 15:22:49 hohndel Exp $ */
-#define LARGE_COORDINATE 1000000
-#define SMALL_COORDINATE -LARGE_COORDINATE
+#define LARGE_COORDINATE INT_MAX
+#define SMALL_COORDINATE INT_MIN
/*
* InsertEdgeInET