summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-11-06 15:15:29 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-11-06 15:56:27 +0100
commitcbd0fbc287051f918e4adb32b3e9b58dfbf8059d (patch)
treeef1adb4833624eeeda079b3cf0f1073f856faa32 /writerfilter
parentf355bad3a055c6369d1cae4afd0c02d181584b09 (diff)
DOCX import: fix <w:tblW w:type="auto"/> handling when cells have fixed widths
Commit 74c5ed19f430327988194cdcd6bdff09591a93fa (DOCX import fix for table with auto size, 2013-06-26) correctly recognized that in case the width type is auto, that doesn't always mean text::SizeType::VARIABLE. However, when the size is fixed, then we should simply not do anything, and that'll lead to the right behavior (by setting the column separators on each row), don't try to be smart and try to set TablePropertyMap::TABLE_WIDTH here. Change-Id: I997b88e5fa34bbabe7c6940879c81a1d62d69043
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index cad79e9f350b..0caba6530041 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -202,16 +202,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
}
// Check whether the total width of given row is compared with the maximum value of rows (m_nMaxFixedWidth).
- if (bFixed )
- {
- // Check if total width
- if (m_nMaxFixedWidth < nRowFixedWidth)
- m_nMaxFixedWidth = nRowFixedWidth;
-
- pPropMap->setValue( TablePropertyMap::TABLE_WIDTH_TYPE, text::SizeType::FIX );
- pPropMap->setValue( TablePropertyMap::TABLE_WIDTH, m_nMaxFixedWidth );
- }
- else
+ if (!bFixed)
{
// Set the width type of table with 'Auto' and set the width value to 100(%)
pPropMap->setValue( TablePropertyMap::TABLE_WIDTH_TYPE, text::SizeType::VARIABLE );