[GRASS-dev] [GRASS GIS] #286: vdigit: changing a tool should cancel current edits

#286: vdigit: changing a tool should cancel current edits
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
r33285

1. add a vertex on a boundary

2. don't confirm with the right key, but select the "Move vertex" tool

3. try to drag the vertex you added - failure:

{{{
Traceback (most recent call last):
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1025, in MouseActions

self.OnLeftUp(event)
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1400, in OnLeftUp

self.moveCoords = (self.moveCoords[0] + dx,
IndexError
:
list index out of range
}}}

Selecting a different tool without committing the edit first (like in the
case above), should automatically cancel the uncommited edits edits.

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

#286: vdigit: changing a tool should cancel current edits
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

Fixed in r36423 (relbr64) r36424 (devbr6) and r36425 (trunk).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/286#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#286: vdigit: changing a tool should cancel current edits
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/286#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>