5439: Wrong row when dragging upwards to move items in embedded list
svn: r18626
This commit is contained in:
parent
3cb96532dc
commit
cce7dcc43c
@ -274,7 +274,7 @@ class EmbeddedList(ButtonTab):
|
||||
del dlist[row_from]
|
||||
else:
|
||||
del dlist[row_from]
|
||||
dlist.insert(row_to-1, obj)
|
||||
dlist.insert(row_to, obj)
|
||||
self.changed = True
|
||||
self.rebuild()
|
||||
|
||||
|
@ -526,7 +526,7 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
||||
del dlist[row_from]
|
||||
else:
|
||||
del dlist[row_from]
|
||||
dlist.insert(row_to-1, obj)
|
||||
dlist.insert(row_to, obj)
|
||||
self.changed = True
|
||||
self.rebuild()
|
||||
|
||||
|
@ -258,7 +258,7 @@ class GroupEmbeddedList(EmbeddedList):
|
||||
del dlist[row_from[1]]
|
||||
else:
|
||||
del dlist[row_from[1]]
|
||||
dlist.insert(row_to[1]-1, obj)
|
||||
dlist.insert(row_to[1], obj)
|
||||
self.changed = True
|
||||
self.rebuild()
|
||||
elif row_from[0] == self._WORKGROUP:
|
||||
|
Loading…
Reference in New Issue
Block a user