--- /home/dnaber/thesdlg.cxx 2005-04-14 21:25:24.000000000 +0200 +++ thesdlg.cxx 2005-04-18 00:37:31.000000000 +0200 @@ -124,11 +124,14 @@ // inserted into the document. Thus we strip them from the text. xub_StrLen nPos = rText.Search( sal_Unicode('(') ); - if (STRING_NOTFOUND != nPos) + while (STRING_NOTFOUND != nPos) { xub_StrLen nEnd = rText.Search( sal_Unicode(')'), nPos ); if (STRING_NOTFOUND != nEnd) - rText.Erase( nPos, nEnd ); + rText.Erase( nPos, nEnd-nPos+1 ); + else + break; + nPos = rText.Search( sal_Unicode('(') ); } nPos = rText.Search( sal_Unicode('*') );