mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
* GSWeb.framework/GSWDisplayGroup.m
(-displayBatchContainingSelectedObject): Test _numberOfObjectsPerBatch to be non-zero before dividing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20383 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e6a13dd02d
commit
1f4ca4f38f
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
|||
2004-11-26 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* GSWeb.framework/GSWDisplayGroup.m
|
||||
(-displayBatchContainingSelectedObject): Test
|
||||
_numberOfObjectsPerBatch to be non-zero before dividing.
|
||||
|
||||
2004-11-26 David Wetzel <dave@turbocat.de>
|
||||
|
||||
* GSWeb.framework/GSWDynamicURLString.m
|
||||
added some speed enhancements
|
||||
|
||||
|
|
|
@ -968,7 +968,7 @@ static BOOL globalDefaultForValidatesChangesImmediately = NO;
|
|||
|
||||
selectionIndex=[self _selectionIndex];
|
||||
|
||||
if ([self batchCount]>0)
|
||||
if ([self batchCount]>0 && _numberOfObjectsPerBatch != 0)
|
||||
newBatchIndex = selectionIndex / _numberOfObjectsPerBatch + 1;
|
||||
|
||||
if(newBatchIndex!=_batchIndex)
|
||||
|
|
Loading…
Reference in a new issue