* Source/NSView.m (-beginPageInRect:atPlacement): Remove check for

empty rect. This will now use the placement translation all the time.
This commit is contained in:
fredkiefer 2018-07-27 10:09:44 +02:00
parent d1683876fa
commit 9d8dc3ba55
2 changed files with 9 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2018-07-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSView.m (-beginPageInRect:atPlacement): Remove check for
empty rect. This will now use the placement translation all the time.
2018-07-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPrinter.m (-addPPDKeyword:withScanner:withPPDPath:):

View file

@ -4500,12 +4500,10 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
}
/* Translate to placement */
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,
// as all drawing happens in displayRectIgnoringOpacity:
// [self lockFocusIfCanDrawInContext: ctxt];
if (location.x != 0 || location.y != 0)
{
DPStranslate(ctxt, location.x, location.y);
}
}
- (void) _endSheet