]> git.lyx.org Git - features.git/commit
Fix bug #8837: LyX hangs on selection
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Mar 2014 10:15:42 +0000 (11:15 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Mar 2014 10:15:42 +0000 (11:15 +0100)
commit264ea28cbd2a4c24dc6b81fa77422898167fa9f4
tree72278b5e55e90c0710285c68974355e7516d7d18
parenta27333144dc193e71bcef17944b73492b7bbfa2c
Fix bug #8837: LyX hangs on selection

The code that checks whether the cursor was at the end of a row in
Cursor::upDowninText was not able to set boundary correctly. This
causes a hang in because the cursor got stuck on a line and there is an
infinite loop BufferView::dispatch when trying to go down.

The fix is to avoid using the watered-down TextMetrics::x2pos wrapper
around getColumnNearX and use the real thing instead.

Eventually, the last user of x2pos (InsetTabular) should be fixed and
the method should go away.
src/Cursor.cpp