mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +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,
|
pi_.pain.line(int(x_) + 1 - length, yo_ + 2, int(x_) + 1,
|
||||||
yo_ + 2, col, Painter::line_solid, Painter::line_thick);
|
yo_ + 2, col, Painter::line_solid, Painter::line_thick);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw an endlabel
|
// draw an endlabel
|
||||||
@ -682,8 +681,7 @@ void RowPainter::paintLast()
|
|||||||
FontMetrics const & fm = theFontMetrics(font);
|
FontMetrics const & fm = theFontMetrics(font);
|
||||||
docstring const & str = par_.layout().endlabelstring();
|
docstring const & str = par_.layout().endlabelstring();
|
||||||
double const x = is_rtl ?
|
double const x = is_rtl ?
|
||||||
x_ - fm.width(str)
|
text_metrics_.width() - row_.width() - fm.width(str) : x_;
|
||||||
: - text_metrics_.rightMargin(pm_) - row_.width();
|
|
||||||
pi_.pain.text(int(x), yo_, str, font);
|
pi_.pain.text(int(x), yo_, str, font);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user