mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1643418. Don't overwrite the print range type if 'Print Selection Only' is unchecked. r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D78394
This commit is contained in:
parent
01ecd3cda9
commit
4f0f4b029d
@ -260,9 +260,9 @@ static const char sHeaderFooterTags[][4] = {"", "&T", "&U", "&D", "&P", "&PT"};
|
||||
}
|
||||
|
||||
- (void)exportSettings {
|
||||
mSettings->SetPrintRange([mPrintSelectionOnlyCheckbox state] == NSOnState
|
||||
? (int16_t)nsIPrintSettings::kRangeSelection
|
||||
: (int16_t)nsIPrintSettings::kRangeAllPages);
|
||||
if ([mPrintSelectionOnlyCheckbox state] == NSOnState) {
|
||||
mSettings->SetPrintRange(nsIPrintSettings::kRangeSelection);
|
||||
}
|
||||
mSettings->SetShrinkToFit([mShrinkToFitCheckbox state] == NSOnState);
|
||||
mSettings->SetPrintBGColors([mPrintBGColorsCheckbox state] == NSOnState);
|
||||
mSettings->SetPrintBGImages([mPrintBGImagesCheckbox state] == NSOnState);
|
||||
|
Loading…
Reference in New Issue
Block a user