bug fix, on delete return old path of deleted row

svn: r12725
This commit is contained in:
Benny Malengier 2009-06-28 22:07:18 +00:00
parent d182a5797f
commit 7a5e5f4476

View File

@ -280,13 +280,14 @@ class FlatNodeMap(object):
del self._index2hndl[index]
del self._hndl2index[handle]
#update self.__corr so it remains correct
delpath = self.real_path(index)
if self._reverse:
self.__corr = (len(self._index2hndl) - 1, -1)
#update the handle2path map so it remains correct
for key, val in self._hndl2index.iteritems():
if val > index:
self._hndl2index[key] -= 1
return self.real_path(index)
return delpath
#-------------------------------------------------------------------------
#