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

@ -1,3 +1,9 @@
Wed Feb 17 11:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: Tidyup - visibleRect is empty if we have no window.
* Source/NSText.m: ([-redisplayForLineRange:]) fixed error drawing
into wrong view.
Wed Feb 17 9:04:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Tools/make_services.m: Updated for change in NSProcessInfo

View file

@ -1193,10 +1193,16 @@ typedef enum
-(void) redisplayForLineRange: (NSRange)redrawLineRange
{ BOOL didLock=NO;
{
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)

View file

@ -300,7 +300,7 @@ static PSMatrix *flip = nil;
return [super_view opaqueAncestor];
}
- (void) removeFromSuperviewWithoutNeedinfDisplay
- (void) removeFromSuperviewWithoutNeedingDisplay
{
NSMutableArray *views;
@ -1161,6 +1161,8 @@ static PSMatrix *flip = nil;
- (NSRect) visibleRect
{
if (!window)
return NSZeroRect;
if (!super_view)
return bounds;
else