* 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:
David Ayers 2004-11-26 14:01:40 +00:00
parent e6a13dd02d
commit 1f4ca4f38f
2 changed files with 8 additions and 1 deletions

View file

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

View file

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