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)
>> +            break;
> This is needed because if from is at the end of the document (which is  
> possible when leaving the Math Inset), LyX will crash later.
>
>> +        if (from == to)
>> +            continue;    
> This is needed to get a correct count of the number of words. However,  
> the reported number of words seems to be pretty random.

Why not have that as comment in the code?

Andre'

Reply via email to