mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix the painting of the last character of a paragraph. That is either the added/deleted paragraph breaks in change tracking or the to-be introduced pilcrow marks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31154 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d75f135ab9
commit
41c1dcdc27
@ -2153,11 +2153,16 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type pit, int x, int y) co
|
||||
rp.paintAppendix();
|
||||
rp.paintDepthBar();
|
||||
rp.paintChangeBar();
|
||||
if (i == 0)
|
||||
bool const is_rtl = text_->isRTL(text_->getPar(pit));
|
||||
if (i == 0 && !is_rtl)
|
||||
rp.paintFirst();
|
||||
rp.paintText();
|
||||
if (i == nrows - 1)
|
||||
if (i == nrows - 1 && is_rtl)
|
||||
rp.paintLast();
|
||||
rp.paintText();
|
||||
if (i == nrows - 1 && !is_rtl)
|
||||
rp.paintLast();
|
||||
if (i == 0 && is_rtl)
|
||||
rp.paintFirst();
|
||||
y += row.descent();
|
||||
// Restore full_repaint status.
|
||||
pi.full_repaint = tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user