diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-05-03 12:57:14 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-05-03 12:57:14 +0000 |
commit | fb17e7afe60f9adbe87772e6baa4bebed5d3dc2b (patch) | |
tree | 94a66f16b337819ab8c6ee22038cf04ecee93066 /svx/source/dialog/thesdlg.cxx | |
parent | INTEGRATION: CWS savewrap1 (1.167.30); FILE MERGED (diff) | |
download | core-fb17e7afe60f9adbe87772e6baa4bebed5d3dc2b.tar.gz core-fb17e7afe60f9adbe87772e6baa4bebed5d3dc2b.zip |
INTEGRATION: CWS thesau01 (1.10.734); FILE MERGED
2005/04/20 20:03:31 ericb 1.10.734.1: i47107 wrong replace suggestion in thesaurus
Diffstat (limited to 'svx/source/dialog/thesdlg.cxx')
-rw-r--r-- | svx/source/dialog/thesdlg.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/svx/source/dialog/thesdlg.cxx b/svx/source/dialog/thesdlg.cxx index 4807d7d611c3..07eb94b16b27 100644 --- a/svx/source/dialog/thesdlg.cxx +++ b/svx/source/dialog/thesdlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: thesdlg.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2004-04-27 15:47:43 $ + * last change: $Author: obo $ $Date: 2005-05-03 13:57:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -124,11 +124,14 @@ static void GetReplaceEditString( String &rText ) // 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('*') ); |