From aaefd5196836f21941feadf09390d991d180fadd Mon Sep 17 00:00:00 2001 From: ericwa Date: Fri, 23 Dec 2011 21:22:41 +0000 Subject: [PATCH] Undo last change as it broke Graphos printing git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34353 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 9 --------- Source/NSView.m | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 322bde86f..04f5fd5b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,3 @@ -2011-12-23 Eric Wasylishen - - * 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 * Source/NSTextView.m (-setFieldEditor:): Use different values for diff --git a/Source/NSView.m b/Source/NSView.m index c19e58a4c..bc65d0f08 100644 --- a/Source/NSView.m +++ b/Source/NSView.m @@ -4482,7 +4482,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level) } /* Translate to placement */ - if ((location.x != 0 || location.y != 0)) + if ((location.x != 0 || location.y != 0) && NSIsEmptyRect(aRect) == YES) DPStranslate(ctxt, location.x, location.y); // FIXME: Need to place this correctly. Maybe it isn't needed at all,