diff --git a/gui/wxpython/vdigit/wxdisplay.py b/gui/wxpython/vdigit/wxdisplay.py index c6bdaa1ea74..20e8d63d274 100644 --- a/gui/wxpython/vdigit/wxdisplay.py +++ b/gui/wxpython/vdigit/wxdisplay.py @@ -712,6 +712,7 @@ def SelectLineByPoint(self, point, ltype=None, poMapInfo=None): pz = c_double() if not self._validLine(lineNearest): return {"line": -1, "point": None} + _ = Vect_read_line(poMapInfo, self.poPoints, self.poCats, lineNearest) Vect_line_distance( self.poPoints, point[0], @@ -855,6 +856,7 @@ def GetSelectedVertex(self, pos): if not self._validLine(line): return -1 + _ = Vect_read_line(poMapInfo, self.poPoints, self.poCats, lineNearest) minDist = 0.0 Gid = -1