diff options
Diffstat (limited to 'svtools/source/svhtml/htmlsupp.cxx')
-rw-r--r-- | svtools/source/svhtml/htmlsupp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/svhtml/htmlsupp.cxx b/svtools/source/svhtml/htmlsupp.cxx index 71709b8cbd04..8b5998648712 100644 --- a/svtools/source/svhtml/htmlsupp.cxx +++ b/svtools/source/svhtml/htmlsupp.cxx @@ -83,7 +83,7 @@ void HTMLParser::RemoveSGMLComment( OUString &rString, bool bFull ) sal_Unicode c = 0; while( !rString.isEmpty() && ( ' '==(c=rString[0]) || '\t'==c || '\r'==c || '\n'==c ) ) - rString = rString.copy( 1, rString.getLength() - 1 ); + rString = rString.copy( 1 ); while( !rString.isEmpty() && ( ' '==(c=rString[rString.getLength()-1]) @@ -109,7 +109,7 @@ void HTMLParser::RemoveSGMLComment( OUString &rString, bool bFull ) nPos = 3; } ++nPos; - rString = rString.copy( nPos, rString.getLength() - nPos ); + rString = rString.copy( nPos ); } if( rString.endsWith("-->") ) |