FLEX-34756 The unit test revealed a bug in the solution: isTextFieldReadyForSpellingJob() should return true only if the textFlow is not damaged (it used to do the opposite).
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/8363ebf3 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/8363ebf3 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/8363ebf3 Branch: refs/heads/as3httpclient-work Commit: 8363ebf3be1d105dc168f2e75bb6aefe32da6430 Parents: daf48a0 Author: Mihai Chira <mih...@apache.org> Authored: Fri Apr 10 14:25:47 2015 +0200 Committer: Mihai Chira <mih...@apache.org> Committed: Fri Apr 10 14:25:47 2015 +0200 ---------------------------------------------------------------------- .../SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8363ebf3/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as ---------------------------------------------------------------------- diff --git a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as index 9b55ff6..0033320 100644 --- a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as +++ b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as @@ -352,7 +352,7 @@ package com.adobe.linguistics.spelling if(!textFlow || !textFlow.flowComposer) return true; - return textFlow.flowComposer.isDamaged(textFlow.textLength); + return !textFlow.flowComposer.isDamaged(textFlow.textLength); } private function spellCheckRange(start:uint, end:uint):void {