mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:30:48 +00:00
* Source/NSPrinter.m:
* Source/NSPrintOperation.m:
* Source/NSPageLayout.m:
* Source/NSPrintInfo.m:
* Headers/AppKit/NSPrintInfo.h: Migrate printing code to CGFloat
or double.
* Source/NSTextView.m: Rewrite -adjustPageHeightNew🔝bottom:limit:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34288 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
30826f63ee
commit
aefc51b5bb
7 changed files with 81 additions and 56 deletions
|
@ -825,7 +825,7 @@ enum {
|
|||
if (scaleNumber == nil)
|
||||
{
|
||||
NSLog(@"NSPrintScalingFactor was nil in NSPrintInfo");
|
||||
scaleNumber = [NSNumber numberWithFloat: 100.0];
|
||||
scaleNumber = [NSNumber numberWithDouble: 100.0];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -875,16 +875,16 @@ enum {
|
|||
customPaper = [customPapers objectForKey: paperName];
|
||||
|
||||
number = [customPaper objectForKey: @"TopMargin"];
|
||||
[_printInfo setTopMargin: [number floatValue]];
|
||||
[_printInfo setTopMargin: [number doubleValue]];
|
||||
|
||||
number = [customPaper objectForKey: @"BottomMargin"];
|
||||
[_printInfo setBottomMargin: [number floatValue]];
|
||||
[_printInfo setBottomMargin: [number doubleValue]];
|
||||
|
||||
number = [customPaper objectForKey: @"LeftMargin"];
|
||||
[_printInfo setLeftMargin: [number floatValue]];
|
||||
[_printInfo setLeftMargin: [number doubleValue]];
|
||||
|
||||
number = [customPaper objectForKey: @"RightMargin"];
|
||||
[_printInfo setRightMargin: [number floatValue]];
|
||||
[_printInfo setRightMargin: [number doubleValue]];
|
||||
|
||||
size = [[customPaper objectForKey: @"PaperSize"] sizeValue];
|
||||
[_printInfo setPaperSize: size];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue