summaryrefslogtreecommitdiffstats
path: root/src/object-edit.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-20 18:55:18 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-20 18:55:18 +0000
commitd79d64eedbf46367c394081dcf2a4134d5e21e46 (patch)
tree591078de7599a142a0d232582c14f3bdf8b189f5 /src/object-edit.cpp
parentsmall fix in export to ocal gnome_vfs function calls (diff)
downloadinkscape-d79d64eedbf46367c394081dcf2a4134d5e21e46.tar.gz
inkscape-d79d64eedbf46367c394081dcf2a4134d5e21e46.zip
Enable center-dragging of boxes in Z direction by using Shift
(bzr r3555)
Diffstat (limited to '')
-rw-r--r--src/object-edit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/object-edit.cpp b/src/object-edit.cpp
index 2ebb2a065..bb98c6b68 100644
--- a/src/object-edit.cpp
+++ b/src/object-edit.cpp
@@ -652,7 +652,11 @@ static void sp_3dbox_knot_set(SPItem *item, guint knot_id, NR::Point const &new_
static void sp_3dbox_knot_center_set(SPItem *item, NR::Point const &new_pos, NR::Point const &origin, guint state)
{
NR::Matrix const i2d (sp_item_i2d_affine (item));
- sp_3dbox_recompute_XY_corners_from_new_center (SP_3DBOX (item), new_pos * i2d);
+ if (state & GDK_SHIFT_MASK) {
+ sp_3dbox_recompute_Z_corners_from_new_center (SP_3DBOX (item), new_pos * i2d);
+ } else {
+ sp_3dbox_recompute_XY_corners_from_new_center (SP_3DBOX (item), new_pos * i2d);
+ }
sp_3dbox_update_curves (SP_3DBOX(item));
}