From f2d224b1f0a8841cc014bcbdee9ef2f3acea865f Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 13 Nov 2008 23:04:21 +0000 Subject: [PATCH] The 'Radius Ratio' tool option wasn't being honoured when creating Star layers. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2198 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_star.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/state_star.cpp b/synfig-studio/trunk/src/gtkmm/state_star.cpp index 2b1bb15..64bacd9 100644 --- a/synfig-studio/trunk/src/gtkmm/state_star.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_star.cpp @@ -639,10 +639,10 @@ StateStar_Context::make_star(const Point& _p1, const Point& _p2) layer->set_param("origin",p1); get_canvas_interface()->signal_layer_param_changed()(layer,"origin"); - layer->set_param("radius1",(p2-p1).mag()); + layer->set_param("radius1",radius1); get_canvas_interface()->signal_layer_param_changed()(layer,"radius1"); - layer->set_param("radius2",(p2-p1).mag()/2); + layer->set_param("radius2",radius2); get_canvas_interface()->signal_layer_param_changed()(layer,"radius2"); layer->set_param("angle",offset); -- 2.7.4