From: dooglus Date: Fri, 15 Feb 2008 13:55:52 +0000 (+0000) Subject: If a layer has the "width" hint set, but has no "width" parameter, scale the width... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a8d52ac684f03ffc36c93b7171c0995ce1b82037;p=synfig.git If a layer has the "width" hint set, but has no "width" parameter, scale the width ducks by 0.5. git-svn-id: http://svn.voria.com/code@1698 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp index b470816..8475e06 100644 --- a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp +++ b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp @@ -1534,6 +1534,9 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handleget_hint()).get_value(get_time())); if(value.same_type_as(synfig::Real())) width->set_scalar(value.get(synfig::Real())*0.5f); + // if it doesn't have a "width" parameter, scale by 0.5f instead + else + width->set_scalar(0.5f); } // otherwise just present the raw unscaled width else