]> git.lyx.org Git - features.git/commit
Fix various selection-related problems
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 21 Mar 2014 10:56:42 +0000 (11:56 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 8 Jul 2014 19:23:59 +0000 (21:23 +0200)
commitb8170e0e01f486fefb94b19566e24dd391419c12
tree439ff2fa3cf83bc7264547de6762aa097fbda31a
parent7167d90b505f9b98db3de00d081023afed473913
Fix various selection-related problems

All these problems are related to what happens at the extreme points of rows

 * since VIRTUAL elements have a width but no contents, they have to
   be treated specially at some places. It would have been better to
   avoid testing for them explicitly, but I did not find a way.

 * Improve and cleanup the code in breakRow and fix in passing a crash
   when clicking on the right of an incomplete MARGIN_MANUAL
   paragraph.

 * improve the computation of row width in TextMetrics::computeRowMetrics.

 * handle properly the case where a position if not found on the row
   in both cursorX and getPosNearX (actually, this happens when
   selecting).

 * Some code cleanup and comments.
00README_STR_METRICS_BRANCH
src/Row.cpp
src/Row.h
src/TextMetrics.cpp