diff options
author | David Vogt <david.vogt@adfinis-sygroup.ch> | 2019-03-13 13:11:39 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-03-14 18:13:24 +0100 |
commit | 4aa8a6ab08b755e3d82860e8dbc294f854336477 (patch) | |
tree | 751675d33b1fc9e4e4bab207018cdec823c6f75a /xmloff | |
parent | 044fa501e95dcac8120767996dfb7ba8f25a703f (diff) |
tdf#113289: Default value for footnote separator
In old versions of LO/AOO, separator style was defaulting to a solid
line. When you have an old document that doesn't have the style set
explicitly, the line would disappear.
Since newer versions explicitly set the style, we should set the default
to what it was before.
Change-Id: I8dacea75fcf2f95f9bc145442b22ab0d173e7c5a
Reviewed-on: https://gerrit.libreoffice.org/69167
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/XMLFootnoteSeparatorImport.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/style/XMLFootnoteSeparatorImport.cxx b/xmloff/source/style/XMLFootnoteSeparatorImport.cxx index a49852afc9c4..5e928fe196f8 100644 --- a/xmloff/source/style/XMLFootnoteSeparatorImport.cxx +++ b/xmloff/source/style/XMLFootnoteSeparatorImport.cxx @@ -81,7 +81,10 @@ void XMLFootnoteSeparatorImport::StartElement( text::HorizontalAdjust eLineAdjust = text::HorizontalAdjust_LEFT; sal_Int32 nLineTextDistance = 0; sal_Int32 nLineDistance = 0; - sal_Int8 nLineStyle = 0; + + // Default separator line style should be SOLID (used to be default before + // the choice selector was available) + sal_Int8 nLineStyle = 1; // iterate over xattribute list and fill values sal_Int16 nLength = xAttrList->getLength(); |