summaryrefslogtreecommitdiffstats
path: root/src/object-set.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/object-set.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/object-set.cpp')
-rw-r--r--src/object-set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object-set.cpp b/src/object-set.cpp
index fd0b908d1..65e7d45d6 100644
--- a/src/object-set.cpp
+++ b/src/object-set.cpp
@@ -204,7 +204,7 @@ SPItem *ObjectSet::_sizeistItem(bool sml, CompareSize compare) {
SPItem *ist = NULL;
for (auto i = items.begin(); i != items.end(); ++i) {
- Geom::OptRect obox = SP_ITEM(*i)->desktopPreferredBounds();
+ Geom::OptRect obox = SP_ITEM(*i)->documentPreferredBounds();
if (!obox || obox.empty()) {
continue;
}
@@ -212,7 +212,7 @@ SPItem *ObjectSet::_sizeistItem(bool sml, CompareSize compare) {
Geom::Rect bbox = *obox;
gdouble size = compare == AREA ? bbox.area() :
- (compare == VERTICAL ? bbox.width() : bbox.height());
+ (compare == VERTICAL ? bbox.height() : bbox.width());
size = sml ? size : size * -1;
if (size < max) {
max = size;