From 990020c885f51f95108124255e6caf18051edbaa Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 30 Mar 2008 20:44:31 +0000 Subject: [PATCH] Fix a minor problem, and a little tidying. git-svn-id: http://svn.voria.com/code@1946 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 9357698..b9cc89f 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -2596,15 +2596,14 @@ CanvasView::on_duck_changed(const synfig::Point &value,const synfigapp::ValueDes Real new_width(value.mag()); int scale_index(bline_width->get_link_index_from_name("scale")); Real scale((*(bline_width->get_link(scale_index)))(get_time()).get(Real())); - if (!(canvas_interface()->change_value(synfigapp::ValueDesc(bline_width,scale_index), - new_width * scale / old_width))) - return false; + return canvas_interface()->change_value(synfigapp::ValueDesc(bline_width,scale_index), new_width * scale / old_width); } + return canvas_interface()->change_value(value_desc,value.mag()); - break; + case ValueBase::TYPE_ANGLE: return canvas_interface()->change_value(value_desc,Angle::tan(value[1],value[0])); - break; + case ValueBase::TYPE_VECTOR: if (ValueNode_BLineCalcTangent::Handle bline_tangent = ValueNode_BLineCalcTangent::Handle::cast_dynamic(value_desc.get_value_node())) { -- 2.7.4