From 3e2cda224e4119b31d85263ff16a383e693dcbbd Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 14 Mar 2014 10:50:25 +0100 Subject: fdo#69289 RTF import: handle cells with zero width Change-Id: I31b12a5afa5d501d57b56f515ee1d2fd46a09b32 --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'writerfilter') diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index cdb77b5d5c57..1f9306e42dcc 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -3510,6 +3510,9 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) ? m_nNestedCurrentCellX : m_nTopLevelCurrentCellX); int nCellX = nParam - rCurrentCellX; + const int COL_DFLT_WIDTH = 41; // sw/source/filter/inc/wrtswtbl.hxx, minimal possible width of cells. + if (!nCellX) + nCellX = COL_DFLT_WIDTH; // If there is a negative left margin, then the first cellx is relative to that. RTFValue::Pointer_t pTblInd = m_aStates.top().aTableRowSprms.find(NS_ooxml::LN_CT_TblPrBase_tblInd); -- cgit