summaryrefslogtreecommitdiffstats
path: root/src
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
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 'src')
-rw-r--r--src/selection.cpp6
-rw-r--r--src/selection.h2
2 files changed, 4 insertions, 4 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);
diff --git a/src/selection.h b/src/selection.h
index 75351a4ff..32eade21f 100644
--- a/src/selection.h
+++ b/src/selection.h
@@ -361,7 +361,7 @@ private:
void add_3D_boxes_recursively(SPObject *obj);
void remove_box_perspective(SPBox3D *box);
void remove_3D_boxes_recursively(SPObject *obj);
- SPItem *_sizeistItem(bool small, CompareSize compare);
+ SPItem *_sizeistItem(bool sml, CompareSize compare);
std::list<SPBox3D *> _3dboxes;