summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-03-16 19:42:47 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-03-16 19:42:47 +0000
commitf6c82a02188953dcb6d2119123ffc0aaa8d35010 (patch)
treeafb6008f22f5f75c31947333809ab7614caecf41 /src/selection.cpp
parentOnly suppress compiler warnings for GDL if option is supported (diff)
downloadinkscape-f6c82a02188953dcb6d2119123ffc0aaa8d35010.tar.gz
inkscape-f6c82a02188953dcb6d2119123ffc0aaa8d35010.zip
cppcheck
(bzr r12217)
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