diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-02-11 21:16:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-02-12 09:05:37 +0100 |
commit | 29a3d327900eb672b7630eb0b5ddea01a6a0c1a3 (patch) | |
tree | adfbe99c72f542f75c1b008345cef1a72aee8318 /sw/source/filter/ww8/rtfattributeoutput.cxx | |
parent | cfbd830e9c4d1877989bc4ad93109551a0a4b0b7 (diff) |
DOCX, RTF filter: handle distributed para adjust
Pointed out by lcov for the RTF import, but all of RTF/DOCX
import/export was missing.
DOC export is still missing.
Change-Id: I9c48a08c3e951409f59dc1631a6ab39aa95f905d
Reviewed-on: https://gerrit.libreoffice.org/67700
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.cxx')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 232c9fa969fb..0b169f9c5336 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -2754,7 +2754,10 @@ void RtfAttributeOutput::ParaAdjust(const SvxAdjustItem& rAdjust) break; case SvxAdjust::BlockLine: case SvxAdjust::Block: - m_aStyles.append(OOO_STRING_SVTOOLS_RTF_QJ); + if (rAdjust.GetLastBlock() == SvxAdjust::Block) + m_aStyles.append(OOO_STRING_SVTOOLS_RTF_QD); + else + m_aStyles.append(OOO_STRING_SVTOOLS_RTF_QJ); break; case SvxAdjust::Center: m_aStyles.append(OOO_STRING_SVTOOLS_RTF_QC); |