+2003-04-09 Alfredo Braunstein <abraunst@libero.it>
+
+ * text.C (selectNextWordToSpellcheck): don't accidentally
+ skip insets
+
2003-04-10 John Levon <levon@movementarian.org>
* ToolbarBackend.C (getIcon): special handling for
break;
}
- bool const is_bad_inset(cpit->isInset(cpos)
- && !cpit->getInset(cpos)->allowSpellcheck());
-
- if (cpit->isLetter(cpos) && !isDeletedText(*cpit, cpos)
- && !is_bad_inset)
- break;
-
+ bool const is_good_inset = cpit->isInset(cpos)
+ && cpit->getInset(cpos)->allowSpellcheck();
+
+ if (!isDeletedText(*cpit, cpos)
+ && (is_good_inset || cpit->isLetter(cpos)))
+ break;
+
cursor.pos(cpos + 1);
}