[GRASS-dev] [GRASS GIS] #3303: vertex manipulation issue

#3303: vertex manipulation issue
-------------------------------------------------+-------------------------
Reporter: vincent | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: wxGUI | Version: svn-trunk
Keywords: digitizer, remove vertex,zero- | CPU: Unspecified
  length |
Platform: Linux |
-------------------------------------------------+-------------------------
While diting a map with wxdigit, you may accidentally (I mean it's a
nonsense)
attemp to remove a vertex to a two-vertices line: digitizer and gui will
immediately crash. As often in this case the map is damaged, with the
warning : "Coor files of vector map <mymap> is larger than it
should be (XXXX bytes excess)"

After rebuilding the map, the only way to restore it is to purge the
zero-length segment, then everything runs fine again for your map.

wxdigit should prevent removing a vertex to a line if it's made of less
than 3 vertices, or implicitly delete the single remaining vertex.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3303&gt;
GRASS GIS <https://grass.osgeo.org>