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:
Richard Heck 2009-08-09 21:44:46 +00:00
parent 673ff83263
commit c0fd2b7143

View File

@ -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;
}