mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Partially fix bug 2972: The logic was all backwards here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
673ff83263
commit
c0fd2b7143
@ -649,7 +649,6 @@ void RowPainter::paintLast()
|
||||
pi_.pain.line(int(x_) + 1 - length, yo_ + 2, int(x_) + 1,
|
||||
yo_ + 2, col, Painter::line_solid, Painter::line_thick);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// draw an endlabel
|
||||
@ -681,9 +680,8 @@ void RowPainter::paintLast()
|
||||
FontInfo const font = labelFont();
|
||||
FontMetrics const & fm = theFontMetrics(font);
|
||||
docstring const & str = par_.layout().endlabelstring();
|
||||
double const x = is_rtl ?
|
||||
x_ - fm.width(str)
|
||||
: - text_metrics_.rightMargin(pm_) - row_.width();
|
||||
double const x = is_rtl ?
|
||||
text_metrics_.width() - row_.width() - fm.width(str) : x_;
|
||||
pi_.pain.text(int(x), yo_, str, font);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user