From 8e98c9b1aae0f0810fa1b70bca2ac18bdc1ad6a2 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 31 Oct 2007 09:34:59 +0000 Subject: [PATCH] Don't render infinitely large plant layers. git-svn-id: http://svn.voria.com/code@1091 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_particle/plant.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index 7affc15..3cad963 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -461,6 +461,9 @@ Plant::accelerated_render(Context context,Surface *surface,int quality, const Re const Real pw = (br[0] - tl[0]) / w; const Real ph = (br[1] - tl[1]) / h; + if (isinf(pw) || isinf(ph)) + return true; + if(needs_sync_==true) sync(); -- 2.7.4