oox/source/drawingml/table/tablecell.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit a25e3b3c6d047d66845df24f839aa1afe56d9551 Author: David Tardon <dtar...@redhat.com> Date: Thu Jul 26 14:17:09 2012 +0200 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 diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx index d4bbbcf..f68f766 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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits