summaryrefslogtreecommitdiffstats
path: root/src/seltrans.cpp
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/seltrans.cpp
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/seltrans.cpp')
-rw-r--r--src/seltrans.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index 1d4557b90..b41ee1d5c 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -480,18 +480,7 @@ void Inkscape::SelTrans::_updateHandles()
}
if (!_center_is_set) {
- // Extract the position of the center from the first selected object
- GSList *items = (GSList *) _desktop->selection->itemList();
- if (items) {
- SPItem *first = reinterpret_cast<SPItem*>(g_slist_last(items)->data); // from the first item in selection
- if (first->isCenterSet()) { // only if set explicitly
- _center = first->getCenter();
- } else {
- _center = _box.midpoint();
- }
- } else {
- _center = _box.midpoint();
- }
+ _center = _desktop->selection->center();
_center_is_set = true;
}