summaryrefslogtreecommitdiffstats
path: root/src/2geom/nearest-point.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-01-18 09:11:04 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-01-18 09:11:04 +0000
commitf12d6a57fe5cc18be5afd164061578d8e00d75ce (patch)
tree7fd1a501a8a545fbf2326ead48cd041928699c5e /src/2geom/nearest-point.cpp
parentupdate to trunk (diff)
parentFix missing embeded image condition, kindly caught by suv in bug #1270334 (diff)
downloadinkscape-f12d6a57fe5cc18be5afd164061578d8e00d75ce.tar.gz
inkscape-f12d6a57fe5cc18be5afd164061578d8e00d75ce.zip
update to trunk
(bzr r11950.1.235)
Diffstat (limited to 'src/2geom/nearest-point.cpp')
-rw-r--r--src/2geom/nearest-point.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/2geom/nearest-point.cpp b/src/2geom/nearest-point.cpp
index 68a863434..c5dfc133c 100644
--- a/src/2geom/nearest-point.cpp
+++ b/src/2geom/nearest-point.cpp
@@ -66,10 +66,9 @@ double nearest_point( Point const& p,
double closest = from;
double min_dist_sq = L2sq(c(from) - p);
- double distsq;
- for ( unsigned int i = 0; i < zeros.size(); ++i )
+ for ( size_t i = 0; i < zeros.size(); ++i )
{
- distsq = L2sq(c(zeros[i]) - p);
+ double distsq = L2sq(c(zeros[i]) - p);
if ( min_dist_sq > L2sq(c(zeros[i]) - p) )
{
closest = zeros[i];