#i94947# broken hasProperty check (by MST)

This commit is contained in:
Oliver Bolte
2008-10-17 09:24:18 +00:00
parent a8ac4bc414
commit ba71b1135c

View File

@@ -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 );
}