summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/style-subject.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-19 22:59:39 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-19 22:59:39 +0000
commit73a7b549a1a59b121218d4f6d22d51c449a4ca60 (patch)
treea76ed3ce8956dbffde439f01f694edb40ad60719 /src/ui/widget/style-subject.cpp
parentMoved most functions from Selection to ObjectSet (diff)
parent[Bug #1454910] Compressed SVG with media error. (diff)
downloadinkscape-73a7b549a1a59b121218d4f6d22d51c449a4ca60.tar.gz
inkscape-73a7b549a1a59b121218d4f6d22d51c449a4ca60.zip
Added first range to ObjectSet
(bzr r14954.1.8)
Diffstat (limited to 'src/ui/widget/style-subject.cpp')
-rw-r--r--src/ui/widget/style-subject.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/widget/style-subject.cpp b/src/ui/widget/style-subject.cpp
index 47a899c0f..5f697e420 100644
--- a/src/ui/widget/style-subject.cpp
+++ b/src/ui/widget/style-subject.cpp
@@ -57,9 +57,11 @@ Inkscape::Selection *StyleSubject::Selection::_getSelection() const {
std::vector<SPObject*> StyleSubject::Selection::list() {
Inkscape::Selection *selection = _getSelection();
- if(selection)
- return selection->list();
- else return std::vector<SPObject*>();
+ if(selection) {
+ return std::vector<SPObject *>(selection->range().begin(), selection->range().end());
+ }
+
+ return std::vector<SPObject*>();
}
Geom::OptRect StyleSubject::Selection::getBounds(SPItem::BBoxType type) {