From: dooglus Date: Sat, 5 Apr 2008 17:11:38 +0000 (+0000) Subject: Prevent some compiler warnings. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=30bac40d07f5e98a81a82bb44138d1515221b8b4;p=synfig.git Prevent some compiler warnings. git-svn-id: http://svn.voria.com/code@1960 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 0501e09..e0f52a8 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -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())