sw/source/filter/xml/xmlimp.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit cef397d0e00fcc3ba7603b1b8e141a10479bb59e Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri Nov 15 11:22:38 2019 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Nov 20 09:15:35 2019 +0100 Load "PrintTextPlaceholder" and "PrintHiddenText" based on config While looking at tdf#118263, I realized that the "PrintTextPlaceholder" and "PrintHiddenText" attributes are unconditionally taken from the settings.xml when opening a document. All of the other options related to what content to print in "File" -> "Printer Settings" -> "Options" are (not) taken from the document based on whether the "Load user-specific settings with the document" option is enabled or not (in "Tools" -> "Options" -> "Load/Save" -> "General"). I didn't find a reason why those two should be handled differently, so also add them to the list of options not to load from the document if the above option is disabled. Change-Id: Id7e4810c10f4809650eab1f20a2caaf6881bf23d Reviewed-on: https://gerrit.libreoffice.org/82784 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index ad6427077b88..0ba597d22b6f 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -1334,6 +1334,7 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC aExcludeWhenNotLoadingUserSettings.insert("PrintControls"); aExcludeWhenNotLoadingUserSettings.insert("PrintDrawings"); aExcludeWhenNotLoadingUserSettings.insert("PrintGraphics"); + aExcludeWhenNotLoadingUserSettings.insert("PrintHiddenText"); aExcludeWhenNotLoadingUserSettings.insert("PrintLeftPages"); aExcludeWhenNotLoadingUserSettings.insert("PrintPageBackground"); aExcludeWhenNotLoadingUserSettings.insert("PrintProspect"); @@ -1342,6 +1343,7 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC aExcludeWhenNotLoadingUserSettings.insert("PrintFaxName"); aExcludeWhenNotLoadingUserSettings.insert("PrintPaperFromSetup"); aExcludeWhenNotLoadingUserSettings.insert("PrintTables"); + aExcludeWhenNotLoadingUserSettings.insert("PrintTextPlaceholder"); aExcludeWhenNotLoadingUserSettings.insert("PrintSingleJobs"); aExcludeWhenNotLoadingUserSettings.insert("UpdateFromTemplate"); aExcludeWhenNotLoadingUserSettings.insert("PrinterIndependentLayout"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits