mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* 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:
parent
e740f7b0cc
commit
d374f0acae
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue