X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fexample%2Ffilledrect.cpp;h=3aec7d5ff67ab44689c8653c555ccb3fc8bb5338;hb=820e061bbc686559b1b7f00da5db7964fc901b08;hp=72125ee2122a0ee28f9f34a67b30a064f9d7e5ea;hpb=cc54c38609ee9745ad678e5e9b9d7d2912be9c95;p=synfig.git diff --git a/synfig-core/trunk/src/modules/example/filledrect.cpp b/synfig-core/trunk/src/modules/example/filledrect.cpp index 72125ee..3aec7d5 100644 --- a/synfig-core/trunk/src/modules/example/filledrect.cpp +++ b/synfig-core/trunk/src/modules/example/filledrect.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file filledrect.cpp -** \brief Template Header +** \brief Implementation of the "Rectangle" layer ** ** $Id$ ** @@ -53,8 +53,8 @@ using namespace synfig; SYNFIG_LAYER_INIT(FilledRect); SYNFIG_LAYER_SET_NAME(FilledRect,"rectangle"); -SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,_("Rectangle")); -SYNFIG_LAYER_SET_CATEGORY(FilledRect,_("Geometry")); +SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,N_("Rectangle")); +SYNFIG_LAYER_SET_CATEGORY(FilledRect,N_("Geometry")); SYNFIG_LAYER_SET_VERSION(FilledRect,"0.1"); SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$"); @@ -82,8 +82,8 @@ FilledRect::set_param(const String & param, const ValueBase &value) IMPORT(color); IMPORT(point1); IMPORT(point2); - IMPORT(feather_x); - IMPORT(feather_y); + IMPORT_PLUS(feather_x, if(feather_x<0)feather_x=0;); + IMPORT_PLUS(feather_y, if(feather_y<0)feather_y=0;); IMPORT(bevel); IMPORT(bevCircle);