projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent some compiler warnings.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
mod_mirror
/
state_mirror.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/mod_mirror/state_mirror.cpp
b/synfig-studio/trunk/src/gtkmm/mod_mirror/state_mirror.cpp
index
7b0d1a5
..
b9688d0
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/mod_mirror/state_mirror.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/mod_mirror/state_mirror.cpp
@@
-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)
{
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];
Vector p(positions[i]);
if (axis==AXIS_X) p[0] = -(p[0]-center[0]) + center[0];