mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3861 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5da8919ec9
commit
b3053fadef
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Mar 7 6:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSView.m: ([-removeFromSuperview]) Fixed error invalidating
|
||||
coordinates of a view - returned if there was no superview.
|
||||
|
||||
Fri Mar 5 16:04:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Headers/AppKit/NSGraphicsContext.h: Added three new methods to
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
//
|
||||
// Class variables
|
||||
//
|
||||
static NSString *viewThreadKey = @"NSViewThreadKey";
|
||||
static NSAffineTransform *flip = nil;
|
||||
|
||||
static void (*appImp)(NSAffineTransform*, SEL, NSAffineTransform*) = 0;
|
||||
|
@ -257,11 +256,12 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
{
|
||||
NSMutableArray *views;
|
||||
|
||||
if (coordinates_valid)
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
|
||||
if (!super_view) // if no superview then just return
|
||||
return;
|
||||
|
||||
if (coordinates_valid)
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
if ([window firstResponder] == self)
|
||||
[window makeFirstResponder: window];
|
||||
views = [super_view subviews];
|
||||
|
@ -275,11 +275,12 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
NSMutableArray *views;
|
||||
NSWindow *win;
|
||||
|
||||
if (coordinates_valid)
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
|
||||
if (!super_view) // if no superview then just return
|
||||
return;
|
||||
|
||||
if (coordinates_valid)
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
if ([window firstResponder] == self)
|
||||
[window makeFirstResponder: window];
|
||||
views = [super_view subviews];
|
||||
|
|
Loading…
Reference in a new issue