diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-03-22 23:41:24 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-03-22 23:41:24 +0000 |
| commit | e1898194c0387d236157590f2d10917cb0137aac (patch) | |
| tree | ffcfea1b156dde4cb3f82324e5642cc8164500f3 /src/selection-chemistry.cpp | |
| parent | rewrote sp_clippath_get_bbox correctly to fix 1455885 (diff) | |
| download | inkscape-e1898194c0387d236157590f2d10917cb0137aac.tar.gz inkscape-e1898194c0387d236157590f2d10917cb0137aac.zip | |
use rotation center in keyboard rotation and transform dialog
(bzr r273)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index e7e3ec4a3..851fc3a3b 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1450,7 +1450,7 @@ sp_selection_rotate(Inkscape::Selection *selection, gdouble const angle_degrees) if (selection->isEmpty()) return; - NR::Point const center(selection->bounds().midpoint()); + NR::Point center = selection->center(); sp_selection_rotate_relative(selection, center, angle_degrees); @@ -1470,7 +1470,8 @@ sp_selection_rotate_screen(Inkscape::Selection *selection, gdouble angle) return; NR::Rect const bbox(selection->bounds()); - NR::Point const center(bbox.midpoint()); + + NR::Point center = selection->center(); gdouble const zoom = selection->desktop()->current_zoom(); gdouble const zmove = angle / zoom; |
