sw: tdf#50613 fix waitFinished into a loop

Change-Id: Ic8a720657c326d8d51bb3a73688b8f02b7096488
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index a6d9598..1ea83bf 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);
        }
    }