summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-03-22 23:41:24 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-03-22 23:41:24 +0000
commite1898194c0387d236157590f2d10917cb0137aac (patch)
treeffcfea1b156dde4cb3f82324e5642cc8164500f3 /src/ui
parentrewrote sp_clippath_get_bbox correctly to fix 1455885 (diff)
downloadinkscape-e1898194c0387d236157590f2d10917cb0137aac.tar.gz
inkscape-e1898194c0387d236157590f2d10917cb0137aac.zip
use rotation center in keyboard rotation and transform dialog
(bzr r273)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/transformation.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp
index 6056e4a2e..92baa7b81 100644
--- a/src/ui/dialog/transformation.cpp
+++ b/src/ui/dialog/transformation.cpp
@@ -613,7 +613,7 @@ Transformation::applyPageScale(Inkscape::Selection *selection)
}
} else {
NR::Rect bbox(selection->bounds());
- NR::Point center(bbox.midpoint());
+ NR::Point center(bbox.midpoint()); // use rotation center?
NR::scale scale (0,0);
// the values are increments!
if (_units_scale.isAbsolute()) {
@@ -646,13 +646,11 @@ Transformation::applyPageRotate(Inkscape::Selection *selection)
sp_item_rotate_rel(item, NR::rotate (angle*M_PI/180.0));
}
} else {
- NR::Rect bbox = selection->bounds();
- NR::Point center = bbox.midpoint();
+ NR::Point center = selection->center();
sp_selection_rotate_relative(selection, center, angle);
}
sp_document_done(SP_DT_DOCUMENT(selection->desktop()));
-
}
void
@@ -685,7 +683,7 @@ Transformation::applyPageSkew(Inkscape::Selection *selection)
NR::Rect bbox = selection->bounds();
double width = bbox.max()[NR::X] - bbox.min()[NR::X];
double height = bbox.max()[NR::Y] - bbox.min()[NR::Y];
- NR::Point center = bbox.midpoint();
+ NR::Point center = selection->center();
if (!_units_skew.isAbsolute()) { // percentage
double skewX = _scalar_skew_horizontal.getValue("%");