From f693852f6506ac4d92d8ed9edb7c6aaea8cd40c9 Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Sat, 11 Feb 2017 13:36:53 +0300 Subject: [PATCH] Fixed "SpellCheckingEditorCustomization" not to block other inspections Fixed custom "InspectionProfileWrapper" provided by "SpellCheckingEditorCustomization" not to block other inspections besides "SpellCheckingInspection" --- .../spellchecker/ui/SpellCheckingEditorCustomization.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spellchecker/src/com/intellij/spellchecker/ui/SpellCheckingEditorCustomization.java b/spellchecker/src/com/intellij/spellchecker/ui/SpellCheckingEditorCustomization.java index 500c933a5fc6..68a65d359c39 100644 --- a/spellchecker/src/com/intellij/spellchecker/ui/SpellCheckingEditorCustomization.java +++ b/spellchecker/src/com/intellij/spellchecker/ui/SpellCheckingEditorCustomization.java @@ -159,7 +159,7 @@ public class SpellCheckingEditorCustomization extends SimpleEditorCustomization @Override public boolean isToolEnabled(HighlightDisplayKey key, PsiElement element) { - return myUseSpellCheck && SPELL_CHECK_TOOLS.containsKey(key.toString()); + return SPELL_CHECK_TOOLS.containsKey(key.toString()) ? myUseSpellCheck : super.isToolEnabled(key, element); } public void setUseSpellCheck(boolean useSpellCheck) {