Kaydet (Commit) 262b28a6 authored tarafından jp's avatar jp

Bug #80930#: handle the return value correct

üst a2f64ca0
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: srtdlg.cxx,v $ * $RCSfile: srtdlg.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:14:45 $ * last change: $Author: jp $ $Date: 2000-11-30 11:47:50 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -311,14 +311,17 @@ void SwSortDlg::Apply() ...@@ -311,14 +311,17 @@ void SwSortDlg::Apply()
aOptions.nDeli = nDeli; aOptions.nDeli = nDeli;
aOptions.bTable = rSh.IsTableMode(); aOptions.bTable = rSh.IsTableMode();
SwWait aWait( *rSh.GetView().GetDocShell(), TRUE ); BOOL bRet;
rSh.StartAllAction(); {
BOOL bRet = rSh.Sort(aOptions); SwWait aWait( *rSh.GetView().GetDocShell(), TRUE );
rSh.EndAllAction(); rSh.StartAllAction();
if(bRet) if( 0 != (bRet = rSh.Sort( aOptions )))
InfoBox(this->GetParent(), SW_RES(MSG_SRTERR)).Execute(); rSh.SetModified();
else rSh.EndAllAction();
rSh.SetModified(); }
if( !bRet )
InfoBox( this->GetParent(), SW_RES(MSG_SRTERR)).Execute();
// Alte Einstellung speichern // Alte Einstellung speichern
// //
...@@ -376,6 +379,9 @@ IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck ) ...@@ -376,6 +379,9 @@ IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck )
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.1.1.1 2000/09/18 17:14:45 hr
initial import
Revision 1.58 2000/09/18 16:06:00 willem.vandorp Revision 1.58 2000/09/18 16:06:00 willem.vandorp
OpenOffice header added. OpenOffice header added.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment