Le 10/03/2020 à 15:31, Scott Kostyshak a écrit :
Perhaps the following be more reasonable and safer?

   setCursor(cur, cur.pit(), cur.pos());

The above seems safe since I'm just changing "0" to "cur.pos()", and I
don't see how the length of the paragraph can change after this
operation.

This might be a safer option, since Text::setCursor does some things that may or may not be useful here. Actually nobody knows and nobody dares to simplify the code there.

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to