summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorjtx <javier.arraiza@marker.es>2013-03-19 16:56:26 +0000
committerjtx <javier.arraiza@marker.es>2013-03-19 16:56:26 +0000
commitfc95705f9d5761fe111a445c51afc505d08738a7 (patch)
tree65fed75305c0582b165af2c327fca8246829c836 /src/selection.cpp
parentMerge from trunk (diff)
downloadinkscape-fc95705f9d5761fe111a445c51afc505d08738a7.tar.gz
inkscape-fc95705f9d5761fe111a445c51afc505d08738a7.zip
Fixing regression
(bzr r11950.1.61)
Diffstat (limited to 'src/selection.cpp')
-rw-r--r--src/selection.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index 72f50137c..564f1fdd3 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -418,7 +418,6 @@ Geom::OptRect Selection::documentBounds(SPItem::BBoxType type) const
// will be returned; this is also the case in SelTrans::centerRequest()
boost::optional<Geom::Point> Selection::center() const {
GSList *items = (GSList *) const_cast<Selection *>(this)->itemList();
- Geom::Point center;
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