* Source/NSView.m (-beginPageInRect:atPlacement:): Always translate

by the placement value. Previously, we would translate only if the
rect parameter was empty, which doesn't make sense to me.
This fixes the bug where the last page of a document printed from
Ink/TextEdit was incorrectly positioned at the bottom of the
printed page.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34352 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-12-23 20:33:19 +00:00
parent e740f7b0cc
commit d374f0acae
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2011-12-23 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSView.m (-beginPageInRect:atPlacement:): Always translate
by the placement value. Previously, we would translate only if the
rect parameter was empty, which doesn't make sense to me.
This fixes the bug where the last page of a document printed from
Ink/TextEdit was incorrectly positioned at the bottom of the
printed page.
2011-12-22 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextView.m (-setFieldEditor:): Use different values for

View file

@ -4482,7 +4482,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
}
/* Translate to placement */
if ((location.x != 0 || location.y != 0) && NSIsEmptyRect(aRect) == YES)
if ((location.x != 0 || location.y != 0))
DPStranslate(ctxt, location.x, location.y);
// FIXME: Need to place this correctly. Maybe it isn't needed at all,