diff src/pixbuf_util.c @ 95:eb9bb29cbd65

Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net> * bar_exif.[ch]: Make list of general exif tags available to rest of application. * pan-view.c: Add option to display exif information in info popup. Clean up the info popup text alignment. Make displaying the full size image below the info popup optional (off by default). * pixbuf-renderer.c (pr_source_tile_changed): Guard against width/height less than 1. * pibuf_util.c (pixbuf_draw_layout): Guard against width/height less than 1.
author gqview
date Fri, 03 Nov 2006 16:49:29 +0000
parents d063f97503b7
children f6e307c7bad6
line wrap: on
line diff
--- a/src/pixbuf_util.c	Thu Nov 02 23:27:03 2006 +0000
+++ b/src/pixbuf_util.c	Fri Nov 03 16:49:29 2006 +0000
@@ -616,6 +616,8 @@
 	if (!widget || !widget->window) return;
 
 	pango_layout_get_pixel_size(layout, &w, &h);
+	if (w < 1 || h < 1) return;
+
 	pixmap = gdk_pixmap_new(widget->window, w, h, -1);
 
 	gc = gdk_gc_new(widget->window);