]> git.lyx.org Git - features.git/commit
Do not skip space at start of row (fixes #8947, #8838)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Jan 2014 10:04:31 +0000 (11:04 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Jan 2014 10:04:31 +0000 (11:04 +0100)
commitbab58480bc32323c6124c02bdf086b5de1843df0
treebe8741e0031fd64921400f9e102f88033960486a
parentaa764f751c1e2743d7a13ce27da2b3e2439f63d3
Do not skip space at start of row (fixes #8947, #8838)

TextMetrics::getColumnNearX (x -> pos translation) has special code to
ignore spaces at the beginning of a row, but neither the display code
nor TextMetrics::cursorX (pos->x translation) follow this logic. One
might argue that spaces should actually be ignored (like LaTeX does),
but this leads to UI issues and is probably too difficult to
implement.
src/TextMetrics.cpp