mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
* Source/NSView.m (-_viewWillMoveToWindow:): When calling
[-releaseGState] make sure to keep the value of _allocate_gstate. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31409 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5ef03d293a
commit
8d1ae3ab80
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-09-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSView.m (-_viewWillMoveToWindow:): When calling
|
||||
[-releaseGState] make sure to keep the value of _allocate_gstate.
|
||||
|
||||
2010-09-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSView.m (-resizeWithOldSuperviewSize): Remove unneeded
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: 1997
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: 1997 Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: August 1998
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: January 1999
|
||||
|
@ -378,16 +377,20 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
- (void) _viewWillMoveToWindow: (NSWindow*)newWindow
|
||||
{
|
||||
BOOL old_allocate_gstate;
|
||||
|
||||
[self viewWillMoveToWindow: newWindow];
|
||||
if (newWindow == _window)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// This call also reset _allocate_gstate, but then want
|
||||
// would that setting mean in a different window?
|
||||
// This call also reset _allocate_gstate, so we have
|
||||
// to store this value and set it again.
|
||||
// This way we keep the logic in one place.
|
||||
old_allocate_gstate = _allocate_gstate;
|
||||
[self releaseGState];
|
||||
_allocate_gstate = old_allocate_gstate;
|
||||
|
||||
if (_coordinates_valid)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue