xmloff/source/style/xmlnumi.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f8f0f18d7109db4dc140524027c1dd18b6c7dee7
Author: Caolán McNamara <[email protected]>
Date:   Wed Nov 6 15:16:34 2013 +0000

    check for empty string
    
    as demonstrated by kde246118-4.odp
    
    Change-Id: Idf1224555e0d7be9a679862da9ff256cf7a4d128

diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx
index b3680e1..6d5b221 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 )
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to