X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRowPainter.cpp;h=9f9f51eb221639aae433ed702c4517822bde1700;hb=6c1855313cef2fac19022ddc4c8eccaee66088e6;hp=e378f433e8ebc6d09b8d3c3012f9fd861d365dc4;hpb=c6bc5f0ce080435672bbc7a9a8682fdfb8d06da4;p=features.git diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index e378f433e8..9f9f51eb22 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -462,8 +462,8 @@ void RowPainter::paintTopLevelLabel() const * respect to the left and right margins. */ int const leftm = row_.isRTL() ? tm_.rightMargin(row_.pit()) - : tm_.leftMargin(row_.pit()); - int const rightm = row_.isRTL() ? tm_.leftMargin(row_.pit()) + : tm_.leftMargin(row_.pit(), 1); + int const rightm = row_.isRTL() ? tm_.leftMargin(row_.pit(), 1) : tm_.rightMargin(row_.pit()); x += leftm - row_.left_margin + (tm_.width() - leftm -rightm) / 2 - fm.width(str) / 2;