sw/source/core/doc/tblafmt.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit c0b9eff24e4bdfa0c5fe8b8f435e1c1730b65ee1 Author: Caolán McNamara <[email protected]> Date: Sat Apr 1 15:03:46 2017 +0100 support avoiding config in SwTableAutoFormatTable Change-Id: I9d62efc7f57e8893fc5fbd1a8bec1f7cbbbeb2e7 diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index 57cacf03a8c0..13c0e7383834 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -25,6 +25,7 @@ #include <svl/urihelper.hxx> #include <svl/zforlist.hxx> #include <svl/zformat.hxx> +#include <unotools/configmgr.hxx> #include <unotools/pathoptions.hxx> #include <sfx2/app.hxx> #include <svx/dialmgr.hxx> @@ -1286,6 +1287,8 @@ SwTableAutoFormatTable::SwTableAutoFormatTable() bool SwTableAutoFormatTable::Load() { + if (utl::ConfigManager::IsAvoidConfig()) + return false; bool bRet = false; OUString sNm(AUTOTABLE_FORMAT_NAME); SvtPathOptions aOpt; @@ -1301,6 +1304,8 @@ bool SwTableAutoFormatTable::Load() bool SwTableAutoFormatTable::Save() const { + if (utl::ConfigManager::IsAvoidConfig()) + return false; SvtPathOptions aPathOpt; const OUString sNm( aPathOpt.GetUserConfigPath() + "/" AUTOTABLE_FORMAT_NAME ); SfxMedium aStream(sNm, StreamMode::STD_WRITE );
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
