]> Pileus Git - ~andy/gtk/commitdiff
fixed a segfault that showed up when using the color picker.
authorSven Neumann <sven@gimp.org>
Tue, 29 Jan 2002 11:47:15 +0000 (11:47 +0000)
committerSven Neumann <neo@src.gnome.org>
Tue, 29 Jan 2002 11:47:15 +0000 (11:47 +0000)
2002-01-29  Sven Neumann  <sven@gimp.org>

* gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
that showed up when using the color picker.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkimage-x11.c

index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index b834eae76f8d15600e0a88ce8155ef07654a8870..0ca6226039bdb4647cf58c80f1a7f248fd56bbda 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Sven Neumann  <sven@gimp.org>
+
+       * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
+       that showed up when using the color picker.
+
 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkscale.[hc]: fix default value for ::digits property,
index 4f03ff8de33d30ecd058a3d34735acc597e72d82..1ce5ca1d8a8e7c47fa2160cbf7654ec1da23d933 100644 (file)
@@ -584,8 +584,6 @@ _gdk_x11_copy_to_image (GdkDrawable    *drawable,
   if (!gdk_rectangle_intersect (&req, &window_rect, &req))
     goto out;
 
-  private = PRIVATE_DATA (image);
-
   gdk_error_trap_push ();
   
   if (!image &&
@@ -606,6 +604,8 @@ _gdk_x11_copy_to_image (GdkDrawable    *drawable,
          created_image = TRUE;
        }
 
+      private = PRIVATE_DATA (image);
+
       /* In the ShmImage but no ShmPixmap case, we could use XShmGetImage when
        * we are getting the entire image.
        */