[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSPrintOperation (-_printPaginateWithInfo:knowsRange:)
From: |
Georg Fleischmann |
Subject: |
NSPrintOperation (-_printPaginateWithInfo:knowsRange:) |
Date: |
Tue, 14 Jul 2009 13:55:16 +0800 |
Another small issue in NSPrintOperation (that I just worked around in
my code).
If NSPrintScalingFactor is not set, printing will fail in
[NSPrintOperation -_printPaginateWithInfo:knowsRange:]:
info->printScale = [[dict objectForKey: NSPrintScalingFactor]
doubleValue];
In this line, the Dictionary will return nil and the doubleValue ends
up undefined or 0. It should be 1.0.
I suggest something like:
if ([dict objectForKey: NSPrintScalingFactor])
info->printScale = [[dict objectForKey: NSPrintScalingFactor]
doubleValue];
else
info->printScale = 1.0;
Best wishes,
Georg Fleischmann
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- NSPrintOperation (-_printPaginateWithInfo:knowsRange:),
Georg Fleischmann <=