Browse Source

wxGUI/vdigit: fix typo

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55524 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 years ago
parent
commit
2cc93f0e70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gui/wxpython/vdigit/wxdigit.py

+ 2 - 2
gui/wxpython/vdigit/wxdigit.py

@@ -1403,8 +1403,8 @@ class IVDigit:
             last = points.n_points - 1
             if self._settings['closeBoundary']:
                 Vect_append_point(self.poPoints, points.x[0], points.y[0], points.z[0])
-            elif Vect_points_distance(points.x[0], points.x[0], points.z[0],
-                                      points.x[last], points.x[last], points.z[last],
+            elif Vect_points_distance(points.x[0], points.y[0], points.z[0],
+                                      points.x[last], points.y[last], points.z[last],
                                       is3D) <= threshold:
                 points.x[last] = points.x[0]
                 points.y[last] = points.y[0]