diff options
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 2 | ||||
-rw-r--r-- | svtools/source/dialogs/prnsetup.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index e30c771ac487..ae9c4d5cc00d 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -258,7 +258,7 @@ short SaneDlg::Execute() { MessageDialog aErrorBox(NULL, SaneResId(STR_COULD_NOT_BE_INIT)); aErrorBox.Execute(); - return sal_False; + return RET_CANCEL; } LoadState(); return ModalDialog::Execute(); diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx index 498f03862ecb..72cff7fc2657 100644 --- a/svtools/source/dialogs/prnsetup.cxx +++ b/svtools/source/dialogs/prnsetup.cxx @@ -345,7 +345,7 @@ short PrinterSetupDialog::Execute() if ( !mpPrinter || mpPrinter->IsPrinting() || mpPrinter->IsJobActive() ) { SAL_WARN( "svtools.dialogs", "PrinterSetupDialog::Execute() - No Printer or printer is printing" ); - return sal_False; + return RET_CANCEL; } Printer::updatePrinters(); @@ -358,7 +358,7 @@ short PrinterSetupDialog::Execute() short nRet = ModalDialog::Execute(); // update data if the dialog was terminated with OK - if ( nRet == sal_True ) + if ( nRet == RET_OK ) { if ( mpTempPrinter ) mpPrinter->SetPrinterProps( mpTempPrinter ); |