diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 27c63738e5c3..74bcc18dcde0 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -1042,12 +1042,12 @@ void XMLPlaceholderFieldImportContext::PrepareField( OUString aContent = GetContent(); sal_Int32 nStart = 0; sal_Int32 nLength = aContent.getLength(); - if ((nLength > 0) && (aContent.getStr()[0] == '<')) + if (aContent.startsWith("<")) { --nLength; ++nStart; } - if ((nLength > 0) && (aContent.getStr()[aContent.getLength()-1] == '>')) + if (aContent.endsWith(">")) { --nLength; } |