The 'Radius Ratio' tool option wasn't being honoured when creating Star layers.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 13 Nov 2008 23:04:21 +0000 (23:04 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 13 Nov 2008 23:04:21 +0000 (23:04 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2198 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/state_star.cpp

index 2b1bb15..64bacd9 100644 (file)
@@ -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);