diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-06 15:16:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-06 15:16:38 +0000 |
commit | f8f0f18d7109db4dc140524027c1dd18b6c7dee7 (patch) | |
tree | 55ab97a4a43a2427ba00eca43226e6caf2dea546 /xmloff | |
parent | 0325093fdfbb150f8a5176c56cc1a4803ffd1c80 (diff) |
check for empty string
as demonstrated by kde246118-4.odp
Change-Id: Idf1224555e0d7be9a679862da9ff256cf7a4d128
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index b3680e10b868..6d5b221f687e 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -315,7 +315,8 @@ SvxXMLListLevelStyleContext_Impl::SvxXMLListLevelStyleContext_Impl( sTextStyleName = rValue; break; case XML_TOK_TEXT_LEVEL_ATTR_BULLET_CHAR: - cBullet = rValue[0]; + if (!rValue.isEmpty()) + cBullet = rValue[0]; break; case XML_TOK_TEXT_LEVEL_ATTR_HREF: if( bImage ) |