Fix a minor problem, and a little tidying.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 30 Mar 2008 20:44:31 +0000 (20:44 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 30 Mar 2008 20:44:31 +0000 (20:44 +0000)
git-svn-id: http://svn.voria.com/code@1946 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 9357698..b9cc89f 100644 (file)
@@ -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()))
                {