diff options
| author | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-06-19 22:59:39 +0000 |
|---|---|---|
| committer | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-06-19 22:59:39 +0000 |
| commit | 73a7b549a1a59b121218d4f6d22d51c449a4ca60 (patch) | |
| tree | a76ed3ce8956dbffde439f01f694edb40ad60719 /src/ui/widget/style-subject.cpp | |
| parent | Moved most functions from Selection to ObjectSet (diff) | |
| parent | [Bug #1454910] Compressed SVG with media error. (diff) | |
| download | inkscape-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.cpp | 8 |
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) { |
