[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/forms/src/GFObjects GFBlock.py
From: |
James Thompson |
Subject: |
gnue/forms/src/GFObjects GFBlock.py |
Date: |
Tue, 17 Jun 2003 17:29:54 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Branch:
Changes by: James Thompson <address@hidden> 03/06/17 17:29:54
Modified files:
forms/src/GFObjects: GFBlock.py
Log message:
better attempt at keeping visible record correct after a delete
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFObjects/GFBlock.py.diff?tr1=1.83&tr2=1.84&r1=text&r2=text
Patches:
Index: gnue/forms/src/GFObjects/GFBlock.py
diff -c gnue/forms/src/GFObjects/GFBlock.py:1.83
gnue/forms/src/GFObjects/GFBlock.py:1.84
*** gnue/forms/src/GFObjects/GFBlock.py:1.83 Sat Jun 14 18:18:56 2003
--- gnue/forms/src/GFObjects/GFBlock.py Tue Jun 17 17:29:54 2003
***************
*** 388,397 ****
# Backstep thru the record adjusting for any prior records that
# will be deleted. Keeps the record postition properly adjusted
# during deletes.
! for notUsed in range(self._currentRecord+1):
! self.prevRecord()
! if self._resultSet.current.isDeleted():
self._precommitRecord -= 1
if not self._dataSourceLink.hasMaster():
self._resultSet.post()
--- 388,399 ----
# Backstep thru the record adjusting for any prior records that
# will be deleted. Keeps the record postition properly adjusted
# during deletes.
! for record in self._resultSet._cachedRecords:
! if record.isDeleted():
! self._resultSet.prevRecord()
self._precommitRecord -= 1
+ if record == self._resultSet.current:
+ break
if not self._dataSourceLink.hasMaster():
self._resultSet.post()