summaryrefslogtreecommitdiff
path: root/automation/source/server/statemnt.cxx
diff options
context:
space:
mode:
authorGregor Hartmann <gh@openoffice.org>2007-06-15 10:40:39 +0000
committerGregor Hartmann <gh@openoffice.org>2007-06-15 10:40:39 +0000
commit019f4ce1d57d3a2a2b5e346fad78d38a7f95985c (patch)
treeb0cfec78ff8cc724d13d5ba8a244e28a1e7655d2 /automation/source/server/statemnt.cxx
parenta857bfd8e435f91206f5cffbc393b6d59552c118 (diff)
#148037#office hangs and then crashes
Diffstat (limited to 'automation/source/server/statemnt.cxx')
-rw-r--r--automation/source/server/statemnt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index 3748e3650f52..e847ca7831fc 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: statemnt.cxx,v $
*
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
- * last change: $Author: kz $ $Date: 2007-05-11 08:54:57 $
+ * last change: $Author: gh $ $Date: 2007-06-15 11:40:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -4742,7 +4742,7 @@ BOOL StatementControl::Execute()
{
pControl->GrabFocus();
int i = 10;
- while ( i && !pControl->HasFocus() ) // reschedule a bit
+ while ( i-- && !pControl->HasFocus() ) // reschedule a bit
SafeReschedule();
if ( !pControl->HasFocus() ) // to get asyncronous focus
{