]> git.lyx.org Git - features.git/commit
Fix some display bugs related to end of paragraph markers
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 25 Mar 2016 09:16:33 +0000 (10:16 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 25 Mar 2016 21:22:45 +0000 (22:22 +0100)
commitba7e2113f393c90776113ece5e7acad456f8e07c
tree4af20659d0c0896822c44b9fbb17ccad2b703d74
parentecd7dee5eab9ac8d57433b2be6912941a807f93b
Fix some display bugs related to end of paragraph markers

There are two regressions that are fixed here:

 * empty rows at the end of a paragraph (think after newline at end of
   paragraph or empty line in Verbatim) do not have an end-of-par
   marker. This is fixed by removing the early return in breakRow and
   letting the whole function be executed. This requires to relax an
   assertion in Paragraph::fontSpan. It makes sense here to query
   position at the end of the paragraph.

 * a newline at the end of a paragraph will be followed by and
   end-of-par marker. This is fixed by skipping the end-of-par marker
   when a new row has been requested.
src/Paragraph.cpp
src/TextMetrics.cpp