summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-07-26 14:17:09 +0200
committerNoel Power <noel.power@novell.com>2012-07-31 11:51:20 +0100
commita25e3b3c6d047d66845df24f839aa1afe56d9551 (patch)
treed7b15ab565858fb951ab334a9ef094afc73587c0
parent71e6a74ca6f77db134cbde5ebea1338cd64439e0 (diff)
rhbz#842552 always create text content
The following line in oox::drawingml::table::TableCell::pushToXCell suggests that it is assumed that the cell always contains text: Reference< text::XText > xText( rxCell, UNO_QUERY_THROW ); So TableCell should always hold a valid TextBody too. Change-Id: Ic2db7b535c98dd5f2b18941846709a781df4585c
-rw-r--r--oox/source/drawingml/table/tablecell.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
index d4bbbcf26770..f68f766f5968 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -53,7 +53,8 @@ using ::com::sun::star::drawing::LineStyle;
namespace oox { namespace drawingml { namespace table {
TableCell::TableCell()
-: mnRowSpan ( 1 )
+: mpTextBody( new TextBody() )
+, mnRowSpan ( 1 )
, mnGridSpan( 1 )
, mbhMerge( sal_False )
, mbvMerge( sal_False )