summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-07-11 10:41:25 +0000
committerMartin Owens <doctormo@gmail.com>2013-07-11 10:41:25 +0000
commitdf87c3c1c14f2483a9dbfc8bf2ac69e9834a42bf (patch)
treee890d60ff912c00f92939bb0313f67dcfd900ea3 /src/selection.cpp
parentRemove align point, not required any more (diff)
downloadinkscape-df87c3c1c14f2483a9dbfc8bf2ac69e9834a42bf.tar.gz
inkscape-df87c3c1c14f2483a9dbfc8bf2ac69e9834a42bf.zip
Change small to sml to fix windows compile problem
(bzr r12415)
Diffstat (limited to '')
-rw-r--r--src/selection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index e66137f65..8f43d8e70 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -366,9 +366,9 @@ SPItem *Selection::largestItem(Selection::CompareSize compare) {
return _sizeistItem(false, compare);
}
-SPItem *Selection::_sizeistItem(bool small, Selection::CompareSize compare) {
+SPItem *Selection::_sizeistItem(bool sml, Selection::CompareSize compare) {
GSList const *items = const_cast<Selection *>(this)->itemList();
- gdouble max = small ? 1e18 : 0;
+ gdouble max = sml ? 1e18 : 0;
SPItem *ist = NULL;
for ( GSList const *i = items; i != NULL ; i = i->next ) {
@@ -378,7 +378,7 @@ SPItem *Selection::_sizeistItem(bool small, Selection::CompareSize compare) {
gdouble size = compare == 2 ?
(*bbox)[Geom::X].extent() * (*bbox)[Geom::Y].extent() :
(*bbox)[compare == 1 ? Geom::X : Geom::Y].extent();
- size = small ? size : size * -1;
+ size = sml ? size : size * -1;
if (size < max) {
max = size;
ist = SP_ITEM(i->data);