summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/inc/validate.hxx2
-rw-r--r--sc/source/ui/miscdlgs/optsolver.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/inc/validate.hxx b/sc/source/ui/inc/validate.hxx
index ecf03bc196e6..79c63ff3d511 100644
--- a/sc/source/ui/inc/validate.hxx
+++ b/sc/source/ui/inc/validate.hxx
@@ -132,7 +132,7 @@ public:
OSL_FAIL( "should not execute here!!!when the edit kill focus, should remove refhandler.\r\n" );
if ( IsInExecute() )
- EndDialog( false );
+ EndDialog( RET_CANCEL );
else if ( GetStyle() & WB_CLOSEABLE )
Close();
}
diff --git a/sc/source/ui/miscdlgs/optsolver.cxx b/sc/source/ui/miscdlgs/optsolver.cxx
index 3a02d8d5943f..4a6c50055642 100644
--- a/sc/source/ui/miscdlgs/optsolver.cxx
+++ b/sc/source/ui/miscdlgs/optsolver.cxx
@@ -91,9 +91,9 @@ ScSolverSuccessDialog::ScSolverSuccessDialog( Window* pParent, const OUString& r
IMPL_LINK( ScSolverSuccessDialog, ClickHdl, PushButton*, pBtn )
{
if (pBtn == m_pBtnOk)
- EndDialog(true);
+ EndDialog(RET_OK);
else
- EndDialog(false);
+ EndDialog(RET_CANCEL);
return 0;
}