X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fstable%2Fsrc%2Fmodules%2Fexample%2Ffilledrect.cpp;h=b826588fc2d7338ea1e2001902ff25dc8ca29106;hb=47fce282611fbba1044921d22ca887f9b53ad91a;hp=72125ee2122a0ee28f9f34a67b30a064f9d7e5ea;hpb=d3408370fc3297609b3aa8d4ff7edf1f238df251;p=synfig.git diff --git a/synfig-core/tags/stable/src/modules/example/filledrect.cpp b/synfig-core/tags/stable/src/modules/example/filledrect.cpp index 72125ee..b826588 100644 --- a/synfig-core/tags/stable/src/modules/example/filledrect.cpp +++ b/synfig-core/tags/stable/src/modules/example/filledrect.cpp @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file filledrect.cpp -** \brief Template Header +** \brief Implementation of the "Rectangle" layer ** ** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -53,8 +54,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 +83,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);