* Source/NSPrintOperation.m (-_printPaginateWithInfo:knowsRange:):

Use scale 1.0 if none is given.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28394 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-07-14 08:10:53 +00:00
parent 6d3b1bd4ce
commit 94bb80778d
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-07-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPrintOperation.m (-_printPaginateWithInfo:knowsRange:):
Use scale 1.0 if none is given.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.
2009-07-13 14:12-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSAlert.m: Implementation of GSAlertSheet.

View file

@ -764,7 +764,10 @@ scaleRect(NSRect rect, double scale)
info->paperSize = [_print_info paperSize];
info->orient = [_print_info orientation];
info->printScale = [[dict objectForKey: NSPrintScalingFactor] doubleValue];
if ([dict objectForKey: NSPrintScalingFactor])
info->printScale = [[dict objectForKey: NSPrintScalingFactor] doubleValue];
else
info->printScale = 1.0;
info->nup = [[dict objectForKey: NSPrintPagesPerSheet] intValue];
info->nupScale = 1;
if (info->nup < 1 || (info->nup > 1 && (((info->nup) & 0x1) == 1)))