Re: [patch] Spellchecker Bugs

2009-12-06 Thread Abdelrazak Younes
On 05/12/2009 02:25, Vincent van Ravesteijn wrote: This patch fixes a few things for spellchecking. while (from.inMathed()) from.forwardInset(); This caused LyX to skip parts of a document between two math insets: I'd say that this is a bug of forwardInset() then. +if

Re: [patch] Spellchecker Bugs

2009-12-04 Thread Andre Poenitz
On Sat, Dec 05, 2009 at 02:25:52AM +0100, Vincent van Ravesteijn wrote: > This patch fixes a few things for spellchecking. > >> while (from.inMathed()) >> from.forwardInset(); > This caused LyX to skip parts of a document between two math insets: > >> +if (from == end) >> +

[patch] Spellchecker Bugs

2009-12-04 Thread Vincent van Ravesteijn
This patch fixes a few things for spellchecking. while (from.inMathed()) from.forwardInset(); This caused LyX to skip parts of a document between two math insets: +if (from == end) +break; This is needed because if from is at the end of the document (which is