>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:

>>  If selectionEnd is resize to go oustside an inset, the pos at top
>> level has to be incremented, so that the inset is in the selection.
>> Look at the comment in the anchor() method.

Martin> OK, point taken. Better patch attached.

This looks very good. In the furture, it would be even better to
change LCursor::anchor() (which is not used outside of LCursor) to
return a full DocIterator, so that we do not have to duplicate the
code between selXXX and selectionXXX. The former should be just
   return selectionXXX().top();

Also, could you update the code in drawSelection (both versions just
in case) to use directly selectionBegin/End?

JMarc

Reply via email to