[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Tue Sep 19 13:00:23 UTC 2017
sc/source/ui/docshell/docsh2.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 7480094c3e71ff0538734eb360ab5f9ed2b66243
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 19 13:54:29 2017 +0100
ofz: disable more config related code
Change-Id: I2458000c5d46a371cec0a17fb0bfd86a2444dc42
Reviewed-on: https://gerrit.libreoffice.org/42472
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx
index c8ea4ff7a9ff..1098f2c9025b 100644
--- a/sc/source/ui/docshell/docsh2.cxx
+++ b/sc/source/ui/docshell/docsh2.cxx
@@ -116,13 +116,13 @@ void ScDocShell::InitItems()
PutItem( SvxColorListItem( XColorList::GetStdColorList(), SID_COLOR_TABLE ) );
}
- if ( !aDocument.GetForbiddenCharacters() ||
- !aDocument.IsValidAsianCompression() || !aDocument.IsValidAsianKerning() )
+ if (!utl::ConfigManager::IsAvoidConfig() &&
+ (!aDocument.GetForbiddenCharacters() || !aDocument.IsValidAsianCompression() || !aDocument.IsValidAsianKerning()))
{
// get settings from SvxAsianConfig
SvxAsianConfig aAsian;
- if (!aDocument.GetForbiddenCharacters() && !utl::ConfigManager::IsAvoidConfig())
+ if (!aDocument.GetForbiddenCharacters())
{
// set forbidden characters if necessary
uno::Sequence<lang::Locale> aLocales = aAsian.GetStartEndCharLocales();
More information about the Libreoffice-commits
mailing list