#164 Grabbing/dragging CTRL-Z bug

open
nobody
None
5
2007-11-20
2007-11-20
Strykaas
No

- Problem :

After dragging an item, if you undi (CTRL-Z) the operation, then the item is correctly returned to its initial position. Then if you try to drag it again, it will start from the position before the "undo", it is actually instantly moved to that position.

- Solution :

Modify pop_action by resetting the current widget (it will trigger item position recomputation later) :

In file vtcl/lib/do.tcl

proc vTcl:pop_action {} {
global vTcl
incr vTcl(change) -1
if { $vTcl(action_index) >= 0 } {
vTcl:destroy_handles
eval $vTcl(action,$vTcl(action_index),undo)
incr vTcl(action_index) -1
vTcl :setup_bind_widget .
set vTcl(w,widget) . <-------------------

- Note : my soon to be submitted patch will hold this fix.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks