Andre Poenitz <[EMAIL PROTECTED]> writes:
| On Mon, Nov 04, 2002 at 10:47:00AM +0000, Angus Leeming wrote:
>> No, the warning is generated in MathArray::notifyCursorLeaves() immediately
>> below your snippet:
>> // glue adjacent font insets of the same kind
>> for (pos_type i = 0; i + 1 < size(); ++i) {
>> MathFontInset * p = operator[](i).nucleus()->asFontInset();
>> MathFontInset const * q = operator[](i + 1)->asFontInset();
>> if (p && q && p->name() == q->name()) {
>> p->cell(0).append(q->cell(0));
>> erase(i + 1);
>> - mathcursor->adjust(i, -1);
>> + mathcursor->adjust(i, npos);
>> }
>> }
>>
>> npos would make that more understandable.
>
| But it is a '-1' which takes care of the one item removed by erase().
| It is not the 'npos' concept ("last thing in a string").
npos is "not a position"
--
Lgb