mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:50:47 +00:00
* 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:
parent
ee53b24c7e
commit
ceb2a84741
2 changed files with 10 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue