From 34124479f018146250c6a727c9b16ea8bacdb589 Mon Sep 17 00:00:00 2001 From: Bruce Bowyer-Smyth Date: Wed, 13 Jan 2016 18:03:54 +1000 Subject: [PATCH] Address PR feedback --- .../OpenLiveWriter.PostEditor/PreferencesHandler.cs | 11 ++++------- .../OpenLiveWriter.SpellChecker/WinSpellingChecker.cs | 6 +++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/managed/OpenLiveWriter.PostEditor/PreferencesHandler.cs b/src/managed/OpenLiveWriter.PostEditor/PreferencesHandler.cs index 934cbc6c..aedcb4a6 100644 --- a/src/managed/OpenLiveWriter.PostEditor/PreferencesHandler.cs +++ b/src/managed/OpenLiveWriter.PostEditor/PreferencesHandler.cs @@ -150,13 +150,10 @@ namespace OpenLiveWriter.PostEditor preferencesPanelTypeTable["accounts"] = type; types.Add(type); - //if (SpellingSettings.CanSpellCheck) - //{ - // Spelling preferences. - type = typeof(SpellingPreferencesPanel); - preferencesPanelTypeTable["spelling"] = type; - types.Add(type); - //} + // Spelling preferences. + type = typeof(SpellingPreferencesPanel); + preferencesPanelTypeTable["spelling"] = type; + types.Add(type); //glossary management type = typeof(GlossaryPreferencesPanel); diff --git a/src/managed/OpenLiveWriter.SpellChecker/WinSpellingChecker.cs b/src/managed/OpenLiveWriter.SpellChecker/WinSpellingChecker.cs index 5b7a05f2..86d4a8eb 100644 --- a/src/managed/OpenLiveWriter.SpellChecker/WinSpellingChecker.cs +++ b/src/managed/OpenLiveWriter.SpellChecker/WinSpellingChecker.cs @@ -41,7 +41,7 @@ namespace OpenLiveWriter.SpellChecker if (string.IsNullOrEmpty(word)) { offset = 0; - length = word.Length; + length = 0; return SpellCheckResult.Correct; } @@ -49,8 +49,8 @@ namespace OpenLiveWriter.SpellChecker if (spellerStatus == null) { - offset = -1; - length = -1; + offset = 0; + length = word.Length; return SpellCheckResult.Correct; } else