mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-06-01 09:31:59 +00:00
* GSWeb.framework/GSWDisplayGroup.m ([GSWDisplayGroup
-setCurrentBatchIndex:]): fixed index out of bound. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@8195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d08d2e655e
commit
f938deff69
2 changed files with 24 additions and 13 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-11-24 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* GSWeb.framework/GSWDisplayGroup.m ([GSWDisplayGroup
|
||||
-setCurrentBatchIndex:]): fixed index out of bound.
|
||||
|
||||
2000-11-04 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
|
||||
* GSWeb.framework/GSWElementIDString.[hm]: fix bug
|
||||
|
|
|
@ -751,16 +751,20 @@ Description: <EOKeyValueUnarchiver: 0x1a84d20>
|
|||
- (id)fetch
|
||||
{
|
||||
BOOL fetch = YES;
|
||||
|
||||
LOGObjectFnStart();
|
||||
|
||||
if(_delegateRespondsTo.shouldFetchObjects == YES)
|
||||
fetch = [delegate displayGroupShouldFetch:self];
|
||||
|
||||
NSDebugMLog(@"fetch=%d",(int)fetch);
|
||||
|
||||
if(fetch)
|
||||
{
|
||||
NSArray *objects=nil;
|
||||
|
||||
NSDebugMLog(@"_dataSource=%@",_dataSource);
|
||||
|
||||
objects = [_dataSource fetchObjects];
|
||||
NSDebugMLog(@"objects=%@",objects);
|
||||
[self setObjectArray:objects];
|
||||
|
@ -770,6 +774,7 @@ Description: <EOKeyValueUnarchiver: 0x1a84d20>
|
|||
didFetchObjects:_allObjects];
|
||||
};
|
||||
LOGObjectFnStop();
|
||||
|
||||
return nil;//FIXME
|
||||
}
|
||||
|
||||
|
@ -894,6 +899,7 @@ Description: <EOKeyValueUnarchiver: 0x1a84d20>
|
|||
atIndex:(unsigned)index
|
||||
{
|
||||
BOOL insert = YES;
|
||||
|
||||
LOGObjectFnStart();
|
||||
if(_delegateRespondsTo.shouldInsertObject == YES)
|
||||
insert = [delegate displayGroup:self
|
||||
|
@ -1419,9 +1425,9 @@ Description: <EOKeyValueUnarchiver: 0x1a84d20>
|
|||
if(index_ > batchCount)
|
||||
index_ = 1;
|
||||
|
||||
if(!_numberOfObjectsPerBatch)
|
||||
num = [_allObjects count];
|
||||
else
|
||||
|
||||
if(_numberOfObjectsPerBatch && _numberOfObjectsPerBatch < num)
|
||||
num = _numberOfObjectsPerBatch;
|
||||
|
||||
if(num)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue