summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/measure-tool.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-12-07 23:45:01 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2015-12-07 23:45:01 +0000
commita0bef55aef1f82f56535cfadf30247657ccc3f90 (patch)
treea5523d84140303998f86072c6263e16af6d5d15e /src/ui/tools/measure-tool.cpp
parentcppification : GHashMaps replaced by stl maps. getResouceList now gives a std... (diff)
parentstatic code analysis (diff)
downloadinkscape-a0bef55aef1f82f56535cfadf30247657ccc3f90.tar.gz
inkscape-a0bef55aef1f82f56535cfadf30247657ccc3f90.zip
update to trunk
(bzr r14504.1.7)
Diffstat (limited to 'src/ui/tools/measure-tool.cpp')
-rw-r--r--src/ui/tools/measure-tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tools/measure-tool.cpp b/src/ui/tools/measure-tool.cpp
index 06f32ba5c..4d17a7ed5 100644
--- a/src/ui/tools/measure-tool.cpp
+++ b/src/ui/tools/measure-tool.cpp
@@ -1108,7 +1108,7 @@ void MeasureTool::showCanvasItems(bool to_guides, bool to_item, Inkscape::XML::N
r->stop();
}
std::vector<double> intersection_times;
- for (std::vector<SPItem*>::const_iterator i=items.begin(); i!=items.end(); i++) {
+ for (std::vector<SPItem*>::const_iterator i=items.begin(); i!=items.end(); ++i) {
SPItem *item = *i;
if (SP_IS_SHAPE(item)) {
calculate_intersections(desktop, item, lineseg, SP_SHAPE(item)->getCurve(), intersection_times);
@@ -1155,7 +1155,7 @@ void MeasureTool::showCanvasItems(bool to_guides, bool to_item, Inkscape::XML::N
std::vector<Geom::Point> intersections;
std::sort(intersection_times.begin(), intersection_times.end());
- for (std::vector<double>::iterator iter_t = intersection_times.begin(); iter_t != intersection_times.end(); iter_t++) {
+ for (std::vector<double>::iterator iter_t = intersection_times.begin(); iter_t != intersection_times.end(); ++iter_t) {
if(show_in_between) {
intersections.push_back(lineseg[0].pointAt(*iter_t));
}