From: dooglus Date: Wed, 31 Oct 2007 02:23:49 +0000 (+0000) Subject: Partially fix 1823082. It works OK for polygon, region, outline and star now. Plant... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2e98eca8dbf8e348f2456d9a9372cf23055a81c9;p=synfig.git Partially fix 1823082. It works OK for polygon, region, outline and star now. Plant still crashes. git-svn-id: http://svn.voria.com/code@1089 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/layer_shape.cpp b/synfig-core/trunk/src/synfig/layer_shape.cpp index 8cb0884..a686bcf 100644 --- a/synfig-core/trunk/src/synfig/layer_shape.cpp +++ b/synfig-core/trunk/src/synfig/layer_shape.cpp @@ -2640,6 +2640,10 @@ Layer_Shape::render_shape(Surface *surface,bool useblend,int /*quality*/, PolySpan span; + // if the pixels are zero sized then we're too zoomed out to see anything + if (pw == 0 || ph == 0) + return true; + //optimization for tessellating only inside tiles span.window.minx = 0; span.window.miny = 0;