Prevent some compiler warnings.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 5 Apr 2008 17:11:38 +0000 (17:11 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 5 Apr 2008 17:11:38 +0000 (17:11 +0000)
git-svn-id: http://svn.voria.com/code@1960 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 0501e09..e0f52a8 100644 (file)
@@ -2628,6 +2628,7 @@ CanvasView::on_duck_changed(const synfig::Point &value,const synfigapp::ValueDes
                        break;
 
                case ValueBase::TYPE_VECTOR:
+               {
                        Vector old_tangent = (*bline_tangent)(get_time()).get(Vector());
                        Angle old_angle = old_tangent.angle();
                        Real old_length = old_tangent.mag();
@@ -2648,6 +2649,9 @@ CanvasView::on_duck_changed(const synfig::Point &value,const synfigapp::ValueDes
                                return false;
                        return canvas_interface()->change_value(synfigapp::ValueDesc(bline_tangent,offset_index), old_offset + new_angle - old_angle);
                }
+               default:
+                       break;
+               }
        }
 
        switch(value_desc.get_value_type())