Partially fix 1823082. It works OK for polygon, region, outline and star now. Plant...
[synfig.git] / synfig-core / trunk / src / synfig / layer_shape.cpp
index 8cb0884..a686bcf 100644 (file)
@@ -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;