]> Pileus Git - ~andy/gtk/commitdiff
Bug 622333 - Crash in gdk_window_impl_quartz_begin_paint_region
authorJohn Ralls <jralls@ceridwen.us>
Sat, 26 Jun 2010 16:17:30 +0000 (18:17 +0200)
committerKristian Rietveld <kris@gtk.org>
Sun, 27 Jun 2010 09:00:20 +0000 (11:00 +0200)
(cherry picked from commit 093a867e51b383b5c1877415b410cc3c122c72da)

gdk/quartz/gdkwindow-quartz.c

index 8de986c52d51c1f1737064198ff04aa7797d7bb5..da4e8c94e1afc6a2a57655d129e4bceeebe4c5ba 100644 (file)
@@ -259,6 +259,9 @@ gdk_window_impl_quartz_begin_paint_region (GdkPaintable    *paintable,
 
   gdk_region_get_rectangles (clipped_and_offset_region, &rects, &n_rects);
 
+  if (n_rects == 0)
+    goto done;
+
   if (bg_pixmap == NULL)
     {
       CGContextRef cg_context;