From 2edc6cabc78545ee4e19e7ed14baca8fe1017a21 Mon Sep 17 00:00:00 2001 From: Ekaterina Shliakhovetskaja Date: Tue, 3 Nov 2009 16:43:28 +0300 Subject: [PATCH] Spellchecker: fix bug with bundled/user dictionary differentioation --- .../spellchecker/settings/SpellCheckerSettingsPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java b/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java index a65225166b35..3ce28f5bbfcc 100644 --- a/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java +++ b/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettingsPane.java @@ -188,7 +188,7 @@ public class SpellCheckerSettingsPane implements Disposable { private boolean isUserDictionary(final String dictionary) { boolean isUserDictionary = false; for (String dictionaryFolder : pathsChooserComponent.getValues()) { - if (dictionary.startsWith(dictionaryFolder)) { + if (FileUtil.toSystemIndependentName(dictionary).startsWith(dictionaryFolder)) { isUserDictionary = true; break; }