Hi Kees, On Mon, 17 Jan 2011 10:26:34 +0100 you wrote: > after the loading I display it with a queue_redraw and in the > expose_event handler it is displayed with > > image->scale_simple(image->get_width() - scaleFactor, > image->get_height() - scaleFactor,
Why on earth are you SUBTRACTING something called "factor"? > > Normally this goes well, but sometimes I get the error and crash of the > app The errmsg is : > GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > > 0' failed. > > What is causing this error and how to avoid it?? What's causing it is that you're passing a negative (or zero) width, probably due to the way you're subtracting your scaleFactor. Without seeing the rest of the code we can't possibly know what you're putting in that variable, but if the name is anything like honest it's not something you'd want to subtract. However, I wouldn't like to imply any certainty that the error is related in any way to a "crash". _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
