diff options
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index d5a0331d4a..7cfa4559a3 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1102,9 +1102,15 @@ OUString XMLTextImportHelper::SetStyleAndAttrs( makeAny(nStartValue)); } - if (sListId.getLength()) { - xPropSet->setPropertyValue( sPropNameListId, makeAny(sListId) ); + // --> OD 2008-04-23 #refactorlists# + if ( xPropSetInfo->hasPropertyByName( sPropNameListId ) ) + { + if (sListId.getLength()) { + xPropSet->setPropertyValue( sPropNameListId, + makeAny(sListId) ); + } } + // <-- GetTextListHelper().SetListItem( (XMLTextListItemContext *)0 ); } |