Minor bugfixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3737 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-02-17 12:22:46 +00:00
parent 2d4a996dd2
commit 2199bd736c
3 changed files with 37 additions and 23 deletions

View file

@ -1192,12 +1192,18 @@ typedef enum
}
-(void) redisplayForLineRange:(NSRange) redrawLineRange
{ BOOL didLock=NO;
-(void) redisplayForLineRange: (NSRange)redrawLineRange
{
BOOL didLock = NO;
if([self window] && [[self class] focusView] != self)
{ [self lockFocus]; didLock=YES;
}
if ([self window] == nil)
return;
if ([[self class] focusView] != self)
{
[self lockFocus];
didLock = YES;
}
if([lineLayoutInformation count] && redrawLineRange.location < [lineLayoutInformation count] && redrawLineRange.length)
{ _GNULineLayoutInfo *firstInfo=[lineLayoutInformation objectAtIndex:redrawLineRange.location];