From 98d47b57bffd545ab32e656ab91740a89baac992 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 26 Jun 2010 18:17:30 +0200 Subject: [PATCH] Bug 622333 - Crash in gdk_window_impl_quartz_begin_paint_region (cherry picked from commit 093a867e51b383b5c1877415b410cc3c122c72da) --- gdk/quartz/gdkwindow-quartz.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 8de986c52d..da4e8c94e1 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -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;