From c1a4cd6c4e0dc79bcebfc050f17963cc8f642ce3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Apr 2015 18:20:34 +0200 Subject: Dialog::Execute return type is short/VclResponseType Change-Id: I40fb77dff3112ee154d6d413757af6593486280d --- svtools/source/dialogs/prnsetup.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svtools') 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 ); -- cgit