summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-06 15:16:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-06 15:16:38 +0000
commitf8f0f18d7109db4dc140524027c1dd18b6c7dee7 (patch)
tree55ab97a4a43a2427ba00eca43226e6caf2dea546 /xmloff
parent0325093fdfbb150f8a5176c56cc1a4803ffd1c80 (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.cxx3
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 )