Fix 1891359: Don't mirror radius ducks.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 11 Feb 2008 18:51:03 +0000 (18:51 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 11 Feb 2008 18:51:03 +0000 (18:51 +0000)
git-svn-id: http://svn.voria.com/code@1672 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/mod_mirror/state_mirror.cpp

index 7b0d1a5..b9688d0 100644 (file)
@@ -285,6 +285,10 @@ DuckDrag_Mirror::duck_drag(Duckmatic* duckmatic, const synfig::Vector& vector)
                if ((*iter)->get_type() != Duck::TYPE_VERTEX &&
                        (*iter)->get_type() != Duck::TYPE_POSITION)
                {
+                       // we don't need to mirror radius ducks - they're one-dimensional
+                       if ((*iter)->is_radius())
+                               continue;
+
                        Vector p(positions[i]);
 
                        if              (axis==AXIS_X) p[0] = -(p[0]-center[0]) + center[0];