summaryrefslogtreecommitdiff
path: root/xmloff/source/core
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-09-26 15:03:58 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2023-09-28 22:52:50 +0200
commit7cf5faec6fdbc27dd77d2d36fb2ff205322cba0d (patch)
tree072bc085ef97d52428e85bfacce2483c098cef91 /xmloff/source/core
parent65efbf64cfa30ba96bc9f0ba539eb1414b861c49 (diff)
tdf#156146 xmloff: ODF import: add backward compatibility hack
As a follow-up to ade0a153f453500f15343380ac937252992733e0 "tdf#114287 xmloff: ODF import: fix text:list override of list style", add some ugly compatibility hack to preserve the visual layout of documents produced by LO versions before 7.6. Override the left/first-line margin of the applied numbering rules with what is in the paragraph or paragraph style, and try to do this only in the specific situation where the list style is the same. Change-Id: I1f4520c9bf9d2257d2e3864e4ddb2d28451bbd2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157284 Tested-by: Jenkins Tested-by: Gabor Kelemen <kelemeng@ubuntu.com> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r--xmloff/source/core/xmlimp.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 24264a77460b..209c141fb0d4 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -219,7 +219,14 @@ public:
}
else if ('7' == loVersion[0])
{
- mnGeneratorVersion = SvXMLImport::LO_7x;
+ if (loVersion.getLength() > 2 && loVersion[2] == '6')
+ {
+ mnGeneratorVersion = SvXMLImport::LO_76; // 7.6
+ }
+ else
+ {
+ mnGeneratorVersion = SvXMLImport::LO_7x;
+ }
}
else
{