mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Fix scaling factor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11158 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4ed9a1a4d7
commit
ce2dfc8d5f
1 changed files with 4 additions and 1 deletions
|
@ -351,7 +351,10 @@ NSPrintPanel *shared_instance;
|
|||
[[CONTROL(self, NSPPPageRangeFrom) cellAtIndex: 0] setStringValue: @"" ];
|
||||
[[CONTROL(self, NSPPPageRangeTo) cellAtIndex: 0] setStringValue: @"" ];
|
||||
[CONTROL(self, NSPPPageChoiceMatrix) selectCellAtRow: 0 column: 0];
|
||||
scale = [[dict objectForKey: NSPrintScalingFactor] doubleValue];
|
||||
if ([dict objectForKey: NSPrintScalingFactor])
|
||||
scale = [[dict objectForKey: NSPrintScalingFactor] doubleValue];
|
||||
else
|
||||
scale = 0;
|
||||
if (scale == 0)
|
||||
scale = 1;
|
||||
[CONTROL(self, NSPPScaleField) setIntValue: (int)(scale*100)];
|
||||
|
|
Loading…
Reference in a new issue