summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2020-12-31 23:06:56 +0300
committerJustin Luth <justin_luth@sil.org>2021-01-15 16:26:16 +0100
commite72a6a73cbcb91d6125170efd422fe0b8760e377 (patch)
tree4376a74d4e25c6a70a6db89e63c6f601e87c3f18 /sw/source/filter/xml
parentf3b5356bdc51b03f9910ed544b8c17d6f919bc12 (diff)
tdf#138544 sw LoadUserSettings: default ConsiderTextWrapOnObjPos
This is the fifth and final patch in the series. When you start a new document, Writer compat setting "Consider wrapping style when positioning objects" is off. Now, when saving and reloading it with LoadUserSettings disabled, it is still the program default of "off", instead of "on". Change-Id: I3e3b4cb6c48dad35b258a898990d7fadfd3048db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108549 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 1e8691ca827b..cd5f2b18f115 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -1498,7 +1498,7 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC
xProps->setPropertyValue( "UseFormerTextWrapping", makeAny( true ) );
}
- if( !bConsiderWrapOnObjPos )
+ if (!bConsiderWrapOnObjPos && bAreUserSettingsFromDocument)
{
xProps->setPropertyValue( "ConsiderTextWrapOnObjPos", makeAny( false ) );
}