diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2022-12-27 15:31:37 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-01-06 14:47:23 +0000 |
commit | e8d18b471ea5063bc0b2c94afc1b94017e8e66bc (patch) | |
tree | a674ec1cb231f5ae11f19937f99c9f49786caf5a /writerfilter | |
parent | 5a2ee5ba893b6b8f4e7fd6623b7f10faf0bda509 (diff) |
tdf#152784: RTF import: more default paragraph params
If numbering is not explicitly mentioned in para properties
it should not be used from referred paragraph style. So
default value of 0 (no numbering) is used by default.
Change-Id: If8e8f2aaf19190f64a557444188f67b24a699b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144839
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfsprm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/rtftok/rtfsprm.cxx b/writerfilter/source/rtftok/rtfsprm.cxx index 90bc97001d27..7a3e4d454687 100644 --- a/writerfilter/source/rtftok/rtfsprm.cxx +++ b/writerfilter/source/rtftok/rtfsprm.cxx @@ -192,13 +192,13 @@ static RTFValue::Pointer_t getDefaultSPRM(Id const id, Id nStyleType) case NS_ooxml::LN_CT_Ind_right: case NS_ooxml::LN_CT_Ind_firstLine: return new RTFValue(0); - case NS_ooxml::LN_CT_Spacing_lineRule: return new RTFValue(NS_ooxml::LN_Value_doc_ST_LineSpacingRule_auto); case NS_ooxml::LN_CT_Spacing_line: // presumably this means 100%, cf. static const int nSingleLineSpacing = 240; return new RTFValue(240); - + case NS_ooxml::LN_CT_NumPr_numId: + return new RTFValue(0); case NS_ooxml::LN_CT_PrBase_pBdr: { // tdf#150382 default all paragraph borders to none RTFSprms attributes; |