diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index bff4bcacc54e..7360c77ede37 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -174,8 +174,13 @@ int SvRTFParser::GetNextToken_() if (!_inSkipGroup) { // UPR - overread the group with the ansi // information - while( '{' != GetNextToken_() ) - ; + int nNextToken; + do + { + nNextToken = GetNextToken_(); + } + while (nNextToken != '{' && nNextToken != sal_Unicode(EOF)); + SkipGroup(); GetNextToken_(); // overread the last bracket nRet = 0; |