summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-10-17 09:24:18 +0000
committerOliver Bolte <obo@openoffice.org>2008-10-17 09:24:18 +0000
commite245db25e21346a74d737234b8e026bb59c6a50d (patch)
tree90c01ea6d3d7bdb8bbca616b344ac24eae2d0fb2
parent1ba607ea4c2c9ecc98f7683f04a907deec565f48 (diff)
#i94947# broken hasProperty check (by MST)
-rw-r--r--xmloff/source/text/txtimp.cxx10
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 );
}