mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
SetPMPrintSettings releases page format instead of print settings <- fix that. b=290214 r=pinkerton sr=smfr a=brendan
This commit is contained in:
parent
bbb48ed8cd
commit
558e94cb3f
@ -228,7 +228,7 @@ NS_IMETHODIMP nsPrintSettingsX::SetPMPrintSettings(PMPrintSettings aPMPrintSetti
|
||||
OSStatus status = ::PMRetain(aPMPrintSettings);
|
||||
if (status == noErr) {
|
||||
if (mPrintSettings)
|
||||
status = ::PMRelease(mPageFormat);
|
||||
status = ::PMRelease(mPrintSettings);
|
||||
mPrintSettings = aPMPrintSettings;
|
||||
}
|
||||
return (status == noErr) ? NS_OK : NS_ERROR_FAILURE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user