From 2e98eca8dbf8e348f2456d9a9372cf23055a81c9 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 31 Oct 2007 02:23:49 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/synfig/layer_shape.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.7.4