mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 06:10:59 +00:00
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:
parent
2d4a996dd2
commit
2199bd736c
3 changed files with 37 additions and 23 deletions
|
@ -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>
|
Wed Feb 17 9:04:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Tools/make_services.m: Updated for change in NSProcessInfo
|
* Tools/make_services.m: Updated for change in NSProcessInfo
|
||||||
|
|
|
@ -1193,10 +1193,16 @@ typedef enum
|
||||||
|
|
||||||
|
|
||||||
-(void) redisplayForLineRange: (NSRange)redrawLineRange
|
-(void) redisplayForLineRange: (NSRange)redrawLineRange
|
||||||
{ BOOL didLock=NO;
|
{
|
||||||
|
BOOL didLock = NO;
|
||||||
|
|
||||||
if([self window] && [[self class] focusView] != self)
|
if ([self window] == nil)
|
||||||
{ [self lockFocus]; didLock=YES;
|
return;
|
||||||
|
|
||||||
|
if ([[self class] focusView] != self)
|
||||||
|
{
|
||||||
|
[self lockFocus];
|
||||||
|
didLock = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
if([lineLayoutInformation count] && redrawLineRange.location < [lineLayoutInformation count] && redrawLineRange.length)
|
if([lineLayoutInformation count] && redrawLineRange.location < [lineLayoutInformation count] && redrawLineRange.length)
|
||||||
|
|
|
@ -300,7 +300,7 @@ static PSMatrix *flip = nil;
|
||||||
return [super_view opaqueAncestor];
|
return [super_view opaqueAncestor];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) removeFromSuperviewWithoutNeedinfDisplay
|
- (void) removeFromSuperviewWithoutNeedingDisplay
|
||||||
{
|
{
|
||||||
NSMutableArray *views;
|
NSMutableArray *views;
|
||||||
|
|
||||||
|
@ -1161,6 +1161,8 @@ static PSMatrix *flip = nil;
|
||||||
|
|
||||||
- (NSRect) visibleRect
|
- (NSRect) visibleRect
|
||||||
{
|
{
|
||||||
|
if (!window)
|
||||||
|
return NSZeroRect;
|
||||||
if (!super_view)
|
if (!super_view)
|
||||||
return bounds;
|
return bounds;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue