summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2011-01-06 12:05:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-06 12:05:14 +0000
commitc9ab976195407f0e91e0323850d2ae298f5cc7bc (patch)
treef8ea0ff494b3c99263515878d66a8110b6671386 /svtools
parent4cce4940114ec91cbe3964aa1180a13f54dc302f (diff)
Resolves: #i109702# basic editor reads past end of string when line ie just '
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/edit/syntaxhighlight.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/edit/syntaxhighlight.cxx b/svtools/source/edit/syntaxhighlight.cxx
index ec112d100277..f326eb0ec8a5 100644
--- a/svtools/source/edit/syntaxhighlight.cxx
+++ b/svtools/source/edit/syntaxhighlight.cxx
@@ -527,7 +527,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
c = getChar(); // '/' entfernen
// Alle Zeichen bis Zeilen-Ende oder EOF entfernen
- sal_Unicode cPeek = peekChar();
+ sal_Unicode cPeek = c;
while( cPeek != CHAR_EOF && testCharFlags( cPeek, CHAR_EOL ) == FALSE )
{
getChar();