summaryrefslogtreecommitdiffstats
path: root/mozilla-709732-gfx-icc-profile-fix.patch
blob: 7e268d0201d7d4739846c5aa57edaeeee142e565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -r dd29535bac5f gfx/thebes/gfxPlatformGtk.cpp
--- a/gfx/thebes/gfxPlatformGtk.cpp	Sat May 05 20:22:53 2012 -0700
+++ b/gfx/thebes/gfxPlatformGtk.cpp	Wed May 09 11:42:21 2012 +0200
@@ -538,16 +538,10 @@
     if (iccAtom) {
         // read once to get size, once for the data
         if (Success == XGetWindowProperty(dpy, root, iccAtom,
-                                          0, 0 /* length */,
+                                          0, INT_MAX /* length */,
                                           False, AnyPropertyType,
                                           &retAtom, &retFormat, &retLength,
                                           &retAfter, &retProperty)) {
-            XGetWindowProperty(dpy, root, iccAtom,
-                               0, retLength,
-                               False, AnyPropertyType,
-                               &retAtom, &retFormat, &retLength,
-                               &retAfter, &retProperty);
-
             qcms_profile* profile = NULL;
 
             if (retLength > 0)