summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlnume.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-04-19 18:28:13 +0200
committerMichael Stahl <mst@openoffice.org>2010-04-19 18:28:13 +0200
commit52efbb2a0a17eacdcce9a1c034a4077f977b75d0 (patch)
tree909fe7feeb7429d16c29c3f081a842d7f886db06 /xmloff/source/style/xmlnume.cxx
parent80fcc2da523bfae04094b105e67493f9d7679f8f (diff)
sw33bf03: #i110694#: exportLevelStyle: no style-name on list-level-style-image
Diffstat (limited to 'xmloff/source/style/xmlnume.cxx')
-rw-r--r--xmloff/source/style/xmlnume.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx
index f84a67f23697..9b6fe97badd8 100644
--- a/xmloff/source/style/xmlnume.cxx
+++ b/xmloff/source/style/xmlnume.cxx
@@ -300,9 +300,12 @@ void SvxXMLNumRuleExport::exportLevelStyle( INT32 nLevel,
OUStringBuffer sTmp;
sTmp.append( nLevel + 1 );
GetExport().AddAttribute( XML_NAMESPACE_TEXT, XML_LEVEL, sTmp.makeStringAndClear() );
- if( sTextStyleName.getLength() > 0 )
+ // #i110694#: no style-name on list-level-style-image
+ if ((sTextStyleName.getLength() > 0) && (NumberingType::BITMAP != eType))
+ {
GetExport().AddAttribute( XML_NAMESPACE_TEXT, XML_STYLE_NAME,
GetExport().EncodeStyleName( sTextStyleName ) );
+ }
if( sPrefix.getLength() > 0 )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_NUM_PREFIX, sPrefix );
if( sSuffix.getLength() > 0 )