Cairo occasionally tries to create 0x0 images, which causes _create_dc_and_bitmap to fail and cairo to stop rendering.
Created attachment 3411 [details] [review] don't try creating 0x0 images, similar to cworth's xlib fix
The fix looks fine to me. There might be some higher-layer place to catch this, but when I looked at fixing the similar xlib bug at higher layers it turned out to be much harder that just this style of fix. Why don't you go ahead and commit this to HEAD and BRANCH_1_0.
2005-09-27 T Rowley <tim.rowley@gmail.com> * ROADMAP: Note that Bug #4602 (use of 0x0 images causes win32 backend failure) is now fixed. * src/cairo-win32-surface.c (_create_dc_and_bitmap): Avoid creating size-0 bitmap, which fails.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.