From e245db25e21346a74d737234b8e026bb59c6a50d Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Fri, 17 Oct 2008 09:24:18 +0000 Subject: #i94947# broken hasProperty check (by MST) --- xmloff/source/text/txtimp.cxx | 10 ++++++++-- 1 file 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 ); } -- cgit v1.2.3