Kaydet (Commit) 986ebb66 authored tarafından Miklos Vajna's avatar Miklos Vajna

fdo#67365 fix RTF import of inherited cell widths

In theory, this is not needed since
01292f17, and in practice it even causes
a problem here.

Change-Id: Id2c2f3f7815efada138f3f84724af77be3372fc1
üst 49493777
...@@ -1860,8 +1860,6 @@ int RTFDocumentImpl::dispatchSymbol(RTFKeyword nKeyword) ...@@ -1860,8 +1860,6 @@ int RTFDocumentImpl::dispatchSymbol(RTFKeyword nKeyword)
m_aStates.top().aTableCellsSprms = m_aStates.top().aTableInheritingCellsSprms; m_aStates.top().aTableCellsSprms = m_aStates.top().aTableInheritingCellsSprms;
m_aStates.top().aTableCellsAttributes = m_aStates.top().aTableInheritingCellsAttributes; m_aStates.top().aTableCellsAttributes = m_aStates.top().aTableInheritingCellsAttributes;
m_aStates.top().nCells = m_aStates.top().nInheritingCells; m_aStates.top().nCells = m_aStates.top().nInheritingCells;
// This can't be the first row, and we need cell width only there
while(m_aStates.top().aTableRowSprms.erase(NS_ooxml::LN_CT_TblGridBase_gridCol)) ;
} }
for (int i = 0; i < m_aStates.top().nCells; ++i) for (int i = 0; i < m_aStates.top().nCells; ++i)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment