summaryrefslogtreecommitdiff
path: root/gtk/gtk_plotters.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtk_plotters.c')
-rw-r--r--gtk/gtk_plotters.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c
index 6c40bb387..ca923bd0b 100644
--- a/gtk/gtk_plotters.c
+++ b/gtk/gtk_plotters.c
@@ -138,6 +138,11 @@ bool nsgtk_plot_bitmap(int x, int y, int width, int height,
{
GdkPixbuf *pixbuf = (GdkPixbuf *) bitmap;
+ LOG(("PLOT: %p @ %d,%d (%dx%d)\n", bitmap, x, y, width, height));
+
+ if (width == 0 || height == 0)
+ return true;
+
if (gdk_pixbuf_get_width(pixbuf) == width &&
gdk_pixbuf_get_height(pixbuf) == height) {
gdk_draw_pixbuf(current_drawable, current_gc,