mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 23:30:48 +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
cdf924b7d7
commit
c9e987a089
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>
|
Fri Mar 5 16:04:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Headers/AppKit/NSGraphicsContext.h: Added three new methods to
|
* Headers/AppKit/NSGraphicsContext.h: Added three new methods to
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
//
|
//
|
||||||
// Class variables
|
// Class variables
|
||||||
//
|
//
|
||||||
static NSString *viewThreadKey = @"NSViewThreadKey";
|
|
||||||
static NSAffineTransform *flip = nil;
|
static NSAffineTransform *flip = nil;
|
||||||
|
|
||||||
static void (*appImp)(NSAffineTransform*, SEL, NSAffineTransform*) = 0;
|
static void (*appImp)(NSAffineTransform*, SEL, NSAffineTransform*) = 0;
|
||||||
|
@ -257,11 +256,12 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
||||||
{
|
{
|
||||||
NSMutableArray *views;
|
NSMutableArray *views;
|
||||||
|
|
||||||
|
if (coordinates_valid)
|
||||||
|
(*invalidateImp)(self, invalidateSel);
|
||||||
|
|
||||||
if (!super_view) // if no superview then just return
|
if (!super_view) // if no superview then just return
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (coordinates_valid)
|
|
||||||
(*invalidateImp)(self, invalidateSel);
|
|
||||||
if ([window firstResponder] == self)
|
if ([window firstResponder] == self)
|
||||||
[window makeFirstResponder: window];
|
[window makeFirstResponder: window];
|
||||||
views = [super_view subviews];
|
views = [super_view subviews];
|
||||||
|
@ -275,11 +275,12 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
||||||
NSMutableArray *views;
|
NSMutableArray *views;
|
||||||
NSWindow *win;
|
NSWindow *win;
|
||||||
|
|
||||||
|
if (coordinates_valid)
|
||||||
|
(*invalidateImp)(self, invalidateSel);
|
||||||
|
|
||||||
if (!super_view) // if no superview then just return
|
if (!super_view) // if no superview then just return
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (coordinates_valid)
|
|
||||||
(*invalidateImp)(self, invalidateSel);
|
|
||||||
if ([window firstResponder] == self)
|
if ([window firstResponder] == self)
|
||||||
[window makeFirstResponder: window];
|
[window makeFirstResponder: window];
|
||||||
views = [super_view subviews];
|
views = [super_view subviews];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue