5439: Wrong row when dragging upwards to move items in embedded list

svn: r18626
This commit is contained in:
Michiel Nauta 2011-12-18 10:06:39 +00:00
parent 3cb96532dc
commit cce7dcc43c
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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: