]> 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)
committerRichard Heck <rgheck@lyx.org>
Wed, 29 Jan 2014 16:38:45 +0000 (11:38 -0500)
commitd187be8205a45797b023005e9a99485c5e8028f6
treea048b9b892a5a526bf36019387b90c8e3c79d030
parent8c07f7fcc0beb1a68dd57300d9486865a1c5c57b
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.
(cherry picked from commit bab58480bc32323c6124c02bdf086b5de1843df0)
src/TextMetrics.cpp