DnD error

Bug #173773 reported by sander
2
Affects Status Importance Assigned to Milestone
Coccinella
Fix Released
Medium
Mats

Bug Description

item "78" doesn't exist
item "78" doesn't exist
    while executing
"$T selection modify $drop $dnd(drop)"
    ("drag" arm line 89)
    invoked from within
"switch $dnd(buttonMode) {
 "drag" {
     if {!$dnd(drag,motion)} {

  # Detect initial mouse movement
  if {(abs($x - $dnd(drag,click,x)) <= 4) &&
 ..."
    (procedure "DnDMotion" line 5)
    invoked from within
"DnDMotion $T $x $y"
    ("drag" arm line 4)
    invoked from within
"switch $dnd(buttonMode) {
 "drag" {
     set Priv(autoscan,command,$T) {::TreeCtrl::DnDMotion %T %x %y}
     AutoScanCheck $T $x $y
     DnDMotion $T ..."
    (procedure "::TreeCtrl::DnDMotion1" line 7)
    invoked from within
"::TreeCtrl::DnDMotion1 .jmain.f.ro.box.tree 62 185"
    (command bound to event)

sander (s-devrieze)
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Medium
Revision history for this message
Mats (matsben) wrote : Re: [Bug 173773] DnD error

The only way I can see this happen is if the item has been removed
while dragging.
When I wrote TreeCtrlDnD I assumed for simplicity that the tree was
static while dragging, knowing that this was a simplification. Seems
I've hit the hard rock now :-(

Revision history for this message
Mats (matsben) wrote :

This should now work, but it is a complicated business to keep track of both dragged items and drop targets when both can suddenly be deleted. Tested when both dragged and dropped items are deleted, for instance, when the presence status of a contact is changed.

Changed in coccinella:
status: New → Fix Committed
sander (s-devrieze)
Changed in coccinella:
milestone: none → 0.96.4
Revision history for this message
sander (s-devrieze) wrote :

Other bug:

can't read "dnd(lastDrop)": no such element in array
can't read "dnd(lastDrop)": no such element in array
    while executing
"DnDItemExists $T $dnd(lastDrop)"
    (procedure "DnDCheckExistence" line 20)
    invoked from within
"DnDCheckExistence $T"
    (procedure "::TreeCtrl::DnDRelease1" line 7)
    invoked from within
"::TreeCtrl::DnDRelease1 .jmain.f.ro.box.tree 58 48"
    (command bound to event)

Revision history for this message
Mats (matsben) wrote : Re: [Bug 173773] Re: DnD error

There have been several more fixes since then.

Revision history for this message
sander (s-devrieze) wrote :

Bug in Window version running under Wine 0.9.46 (acting as Vista):

can't read "dnd(drop)": no such element in array
can't read "dnd(drop)": no such element in array
    while executing
"DnDItemExists $T $dnd(drop)"
    (procedure "TreeCtrl::DnDLeave" line 6)
    invoked from within
"TreeCtrl::DnDLeave .jmain.f.ro.box.tree 44 266
"
    (command bound to event)

Revision history for this message
Mats (matsben) wrote :

Happened when I tried to reset item dragging if leaving widget.
Fixed.

sander (s-devrieze)
Changed in coccinella:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.