summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorroot <root@jtx.marker.es>2013-03-17 04:32:48 +0000
committerroot <root@jtx.marker.es>2013-03-17 04:32:48 +0000
commit40e796d977e44a3b31c063af3ca841fb1daa81c6 (patch)
tree18b117e449d25b286872fa90cc760d7ba4e80c78 /src/selection.cpp
parentwidget working not compile (diff)
parentcppcheck (diff)
downloadinkscape-40e796d977e44a3b31c063af3ca841fb1daa81c6.tar.gz
inkscape-40e796d977e44a3b31c063af3ca841fb1daa81c6.zip
Working in widgets
(bzr r11950.1.55)
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