Index: sw/source/core/unocore/unotext.cxx =================================================================== --- sw/source/core/unocore/unotext.cxx (revision 1373256) +++ sw/source/core/unocore/unotext.cxx (working copy) @@ -2032,8 +2032,11 @@ pProperties[ nProperty ].Value >>= aSeparators; rRowSeparators = aSeparators; } - xRow->setPropertyValue( - pProperties[ nProperty ].Name, pProperties[ nProperty ].Value); + if (pProperties[ nProperty ].Name.getLength()) + { + xRow->setPropertyValue( + pProperties[ nProperty ].Name, pProperties[ nProperty ].Value); + } } } @@ -2163,22 +2166,25 @@ } else { - try + if (rName.getLength()) { - xCellPS->setPropertyValue(rName, rValue); - } - catch (uno::Exception const& e) - { - // Apply the paragraph and char properties to the cell's content - const uno::Reference< text::XText > xCellText(xCell, - uno::UNO_QUERY); - const uno::Reference< text::XTextCursor > xCellCurs = - xCellText->createTextCursor(); - xCellCurs->gotoStart( sal_False ); - xCellCurs->gotoEnd( sal_True ); - const uno::Reference< beans::XPropertySet > xCellTextProps( + try + { + xCellPS->setPropertyValue(rName, rValue); + } + catch (uno::Exception const& e) + { + // Apply the paragraph and char properties to the cell's content + const uno::Reference< text::XText > xCellText(xCell, + uno::UNO_QUERY); + const uno::Reference< text::XTextCursor > xCellCurs = + xCellText->createTextCursor(); + xCellCurs->gotoStart( sal_False ); + xCellCurs->gotoEnd( sal_True ); + const uno::Reference< beans::XPropertySet > xCellTextProps( xCellCurs, uno::UNO_QUERY); - xCellTextProps->setPropertyValue(rName, rValue); + xCellTextProps->setPropertyValue(rName, rValue); + } } } } @@ -2286,8 +2292,11 @@ { try { - xPrSet->setPropertyValue( pTableProperties[nProperty].Name, - pTableProperties[nProperty].Value ); + if (pTableProperties[nProperty].Name.getLength()) + { + xPrSet->setPropertyValue( pTableProperties[nProperty].Name, + pTableProperties[nProperty].Value ); + } } catch ( uno::Exception const& e ) {