summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-07-26 14:17:09 +0200
committerDavid Tardon <dtardon@redhat.com>2012-07-26 15:53:05 +0200
commit772699ac1f2375c33f0819ebb127555d3178c4e5 (patch)
tree4ac32e8c1419fdb884fc92750bfd3ffff1f261c7 /oox
parent6eda57693398486d5c887cfcc2a60cd133d110ee (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
Diffstat (limited to 'oox')
-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 96fa5b76bf01..c89a4f9f64a7 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -44,7 +44,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 )