summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-09-23 21:02:54 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-09-24 09:00:57 +0200
commita283627036c9b1c56e4b765866b8fb8a26ec87ab (patch)
tree020b93265dbac84428a5c5b3ed900492440c8fb2 /writerfilter
parentb2d8093b19642038631dfb8f1ab6745a380a652c (diff)
tdf#104167 DOCX import: don't map Heading1 to Heading 1 para style
This is nominally a regression from commit c12a78e42e1cbaaf4ea021c82acbec5ea177b1f6 (writerfilter: reset properties of reused styles, 2014-06-04), which assumed that style names are unique. They are not unique for the bugdoc, as it has paragraph styles named 'heading 1' and 'Heading1', both mapped to 'Heading 1'. The mapping for the style name without a space was added in commit 1d2af74e226bf44e1a0f1e1981ca965cffeaa0b2 (INTEGRATION: CWS xmlfilter02 (1.27.12); FILE MERGED, 2008-01-10), in the "2007/11/22 14:53:43 os 1.27.12.9: Tab stops almost perfect now" part, sadly without any indication on why that would be a good idea. The binary DOC import never mapped Heading1 to Heading 1, so it doesn't have this problem. Fix the problem by removing this mapping, it leads to formatting loss when a document has both HeadingN and Heading N styles. Change-Id: I26dd999f5a536e079ac351ba5d40d20c83b99310 Reviewed-on: https://gerrit.libreoffice.org/79422 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index bd983857545a..825f1511b60b 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -1278,15 +1278,6 @@ static const sal_Char* const aStyleNamePairs[] =
"heading 7", "Heading 7",
"heading 8", "Heading 8",
"heading 9", "Heading 9",
- "Heading1", "Heading 1",
- "Heading2", "Heading 2",
- "Heading3", "Heading 3",
- "Heading4", "Heading 4",
- "Heading5", "Heading 5",
- "Heading6", "Heading 6",
- "Heading7", "Heading 7",
- "Heading8", "Heading 8",
- "Heading9", "Heading 9",
"Heading 1", "Heading 1",
"Heading 2", "Heading 2",
"Heading 3", "Heading 3",