summaryrefslogtreecommitdiffstats
path: root/src/unclump.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-05-08 07:40:39 +0000
committerjabiertxof <info@marker.es>2016-05-08 07:40:39 +0000
commitd9c43e3d6f19a2f1102743b61d999b477bba4b9a (patch)
treee77ac36155e0813318be3b9e7641338d86dac733 /src/unclump.cpp
parentFixing page transforms (diff)
parentfix-bug-734201. stroke-to-path doesn't scale stroke width used in markers (diff)
downloadinkscape-d9c43e3d6f19a2f1102743b61d999b477bba4b9a.tar.gz
inkscape-d9c43e3d6f19a2f1102743b61d999b477bba4b9a.zip
update to trunk
(bzr r13682.1.40)
Diffstat (limited to 'src/unclump.cpp')
-rw-r--r--src/unclump.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/unclump.cpp b/src/unclump.cpp
index 2c6840425..5ec5cfce4 100644
--- a/src/unclump.cpp
+++ b/src/unclump.cpp
@@ -342,7 +342,9 @@ unclump (std::vector<SPItem*> &items)
std::list<SPItem*> nei;
std::list<SPItem*> rest;
- for(int i=0;i<items.size();i++)rest.push_front(items[items.size()-i-1]);
+ for (int i=0; i < static_cast<int>(items.size()); i++) {
+ rest.push_front(items[items.size() - i - 1]);
+ }
rest.remove(item);
while (!rest.empty()) {
@@ -352,7 +354,9 @@ unclump (std::vector<SPItem*> &items)
rest.remove(closest);
std::vector<SPItem*> new_rest = unclump_remove_behind (item, closest, rest);
rest.clear();
- for(int i=0;i<new_rest.size();i++)rest.push_front(new_rest[new_rest.size()-i-1]);
+ for (int i=0; i < static_cast<int>(new_rest.size()); i++) {
+ rest.push_front(new_rest[new_rest.size() - i - 1]);
+ }
} else {
break;
}