summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-11-11 12:56:02 +0100
committerLászló Németh <nemeth@numbertext.org>2019-11-11 16:39:18 +0100
commit33d966ecc1f9fc44016cdeeed15dbaf6bda68eda (patch)
treef128a1e0ec1dc20be2e21e1da95c3743f3ab7822 /writerfilter/source/rtftok
parent78689171ff2ae55a116f2857ca2323803904280a (diff)
tdf#128428 RTF: fix for different product versions
at switching off longer space sequence mode. Change-Id: I87c265ad0ff5f7b44c92b1abebeb31f68749a1e7 Reviewed-on: https://gerrit.libreoffice.org/82434 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'writerfilter/source/rtftok')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index d92730f0fe28..32bbb1d7da0a 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -1468,8 +1468,8 @@ void RTFDocumentImpl::text(OUString& rString)
m_aStates.top().appendDestinationText(rString);
break;
case Destination::GENERATOR:
- // don't enlarge space sequences again, if the document was saved in LibreOffice
- if (rString.indexOf("LibreOffice") != -1)
+ // don't enlarge space sequences, eg. it was saved in LibreOffice
+ if (!rString.startsWithIgnoreAsciiCase("Microsoft"))
m_aSettingsTableSprms.set(NS_ooxml::LN_CT_Settings_longerSpaceSequence,
new RTFValue(0));
break;