X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_particle%2Fplant.cpp;h=29dab46088a4b5ae71c2ecb66f0d217230b31f14;hb=c4f08b9dd6388dcf27121fd5346047909ed82815;hp=7affc15b7dade3403d95f30c20eaa5bb16cb0ed7;hpb=6d12cf6d823b693ff8342752b00fdea813cff503;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index 7affc15..29dab46 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file plant.cpp -** \brief Template +** \brief Implementation of the "Plant" layer ** ** $Id$ ** @@ -65,8 +65,8 @@ using namespace etl; SYNFIG_LAYER_INIT(Plant); SYNFIG_LAYER_SET_NAME(Plant,"plant"); -SYNFIG_LAYER_SET_LOCAL_NAME(Plant,_("Plant")); -SYNFIG_LAYER_SET_CATEGORY(Plant,_("Other")); +SYNFIG_LAYER_SET_LOCAL_NAME(Plant,N_("Plant")); +SYNFIG_LAYER_SET_CATEGORY(Plant,N_("Other")); SYNFIG_LAYER_SET_VERSION(Plant,"0.1"); SYNFIG_LAYER_SET_CVS_ID(Plant,"$Id$"); @@ -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();