mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:50:38 +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
1ae39a679a
commit
e54e42c0ca
2 changed files with 10 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue