summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-11-02 23:08:41 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-11-02 23:08:41 +0000
commit6162cf1a9f6953319e0e3d6b56354c5cb0f26352 (patch)
treeeee7e33b24751c74fe63ae746583b09458c39a46 /src/selection-chemistry.cpp
parentfix prefs icon (diff)
downloadinkscape-6162cf1a9f6953319e0e3d6b56354c5cb0f26352.tar.gz
inkscape-6162cf1a9f6953319e0e3d6b56354c5cb0f26352.zip
Add some unit tests for object-set cppification
(bzr r15203)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 2f9e72e2c..2db059afe 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -946,7 +946,7 @@ enclose_items(std::vector<SPItem*> const &items)
Geom::OptRect r;
for (std::vector<SPItem*>::const_iterator i = items.begin();i!=items.end();++i) {
- r.unionWith((*i)->desktopVisualBounds());
+ r.unionWith((*i)->documentVisualBounds());
}
return r;
}
@@ -1000,7 +1000,7 @@ void ObjectSet::raise(bool skip_undo){
// if the sibling is an item AND overlaps our selection,
SPItem *newItem = dynamic_cast<SPItem *>(newref);
if (newItem) {
- Geom::OptRect newref_bbox = newItem->desktopVisualBounds();
+ Geom::OptRect newref_bbox = newItem->documentVisualBounds();
if ( newref_bbox && selected->intersects(*newref_bbox) ) {
// AND if it's not one of our selected objects,
if ( std::find(items_copy.begin(),items_copy.end(),newref)==items_copy.end()) {
@@ -1077,7 +1077,7 @@ void ObjectSet::lower(bool skip_undo){
// if the sibling is an item AND overlaps our selection,
SPItem *newItem = dynamic_cast<SPItem *>(newref);
if (newItem) {
- Geom::OptRect ref_bbox = newItem->desktopVisualBounds();
+ Geom::OptRect ref_bbox = newItem->documentVisualBounds();
if ( ref_bbox && selected->intersects(*ref_bbox) ) {
// AND if it's not one of our selected objects,
if (items_copy.end()==std::find(items_copy.begin(),items_copy.end(),newref)) {