Fixed replacing a non-flipped document view (such as nil) with a flipped

one (such as a matrix)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8844 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2001-01-28 03:11:57 +00:00
parent 74ef8f0bd6
commit 07fb8d7d83

View file

@ -61,8 +61,10 @@
NSNotificationCenter *nc;
if (_documentView == aView)
return;
{
return;
}
nc = [NSNotificationCenter defaultCenter];
if (_documentView)
{
@ -72,15 +74,16 @@
ASSIGN (_documentView, aView);
/* Call this before doing anything else ! */
_rFlags.flipped_view = [self isFlipped];
[self _invalidateCoordinates];
if (_documentView)
{
NSRect df;
[self addSubview: _documentView];
/* Call this before setting bounds origin ! */
_rFlags.flipped_view = [self isFlipped];
df = [_documentView frame];
[self setBoundsOrigin: df.origin];
@ -108,8 +111,6 @@
object: _documentView];
}
_rFlags.flipped_view = [self isFlipped];
/* TODO: Adjust the key view loop to include the new document view */
[_super_view reflectScrolledClipView: self];
@ -181,7 +182,10 @@
destPoint.x -= dx;
destPoint.y -= dy;
[self lockFocus];
/* FIXME! copy only an integral rect in device space */
NSCopyBits (0, intersection, destPoint);
[self unlockFocus];
/* Change coordinate system to the new one */