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>
This commit is contained in:
László Németh 2019-11-11 12:56:02 +01:00
parent 78689171ff
commit 33d966ecc1

View File

@ -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;