summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-08-14 11:28:22 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-08-14 17:30:08 +0200
commit824cc4bf4ae9035d4108e8da8e81eb57284f0b54 (patch)
treef385546e28a3197462478bdd3981e18293011ebf /writerfilter
parent9be39483d67f761922d5a60cc95efa9676e428af (diff)
DOCX import: fix table auto width for multiple tables
m_nMaxFixedWidth wasn't reset across tables, so the counted width for the first table in the bugdoc affected the second as well. Regression from 74c5ed19f430327988194cdcd6bdff09591a93fa. Change-Id: I69a5fa402f2e0170a1ea0269fd73e4ad8f7fede1
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index 5925725931e2..80ffb4873c29 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -472,6 +472,7 @@ void DomainMapperTableManager::startLevel( )
m_nCell.push_back( 0 );
m_nTableWidth = 0;
m_nLayoutType = 0;
+ m_nMaxFixedWidth = 0;
// And push it back to the right level.
if (oCurrentWidth)
@@ -486,6 +487,7 @@ void DomainMapperTableManager::endLevel( )
m_nCell.pop_back( );
m_nTableWidth = 0;
m_nLayoutType = 0;
+ m_nMaxFixedWidth = 0;
m_aTmpPosition.pop_back( );
m_aTmpTableProperties.pop_back( );