summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-07-01 14:50:00 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-07-07 22:32:39 +0200
commit68e8d075d92ae4002898a4665a9d7c50162c2511 (patch)
treea1cead2a8026021c7dcf81c88ee8feec1ba0396b
parent9f0766917a4fb1bc8fe1786c3b46132dd63c1c66 (diff)
sw: tdf#50613 fix waitFinished into a loop
Change-Id: Ic8a720657c326d8d51bb3a73688b8f02b7096488
-rw-r--r--sw/source/core/ole/ndole.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index a6d9598e06c4..1ea83bf8231c 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -681,9 +681,10 @@ public:
void waitFinished()
{
- if(!mbFinished)
+ const TimeValue aTimeValue(0, 100000); // 1/10th second
+
+ while(!mbFinished)
{
- const TimeValue aTimeValue(0, 100000); // 1/10th second
osl_waitThread(&aTimeValue);
}
}