diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-24 16:27:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-24 16:27:45 +0100 |
commit | 3bf07c7ada58d2280360377fb8ba45b14969a909 (patch) | |
tree | 20b7f2dbd4b5195a80ff97ec0968652d3d9a132f /oox | |
parent | 317f481902733b74640c903b9263dafa733b02f7 (diff) |
WaE: >>= may fail, default to 0
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/shapes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 5381946a44cd..c2027a76d5a8 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -994,7 +994,7 @@ void ShapeExport::WriteTable( Reference< XShape > rXShape ) for ( sal_Int32 x = 0; x < nColumnCount; x++ ) { Reference< XPropertySet > xColPropSet( xColumns->getByIndex( x ), UNO_QUERY_THROW ); - sal_Int32 nWidth; + sal_Int32 nWidth(0); xColPropSet->getPropertyValue( S("Width") ) >>= nWidth; mpFS->singleElementNS( XML_a, XML_gridCol, XML_w, I64S(MM100toEMU(nWidth)), FSEND ); |