]> git.lyx.org Git - features.git/blobdiff - src/RowPainter.cpp
Center correctly centered top labels (e.g. abstract)
[features.git] / src / RowPainter.cpp
index e378f433e8ebc6d09b8d3c3012f9fd861d365dc4..9f9f51eb221639aae433ed702c4517822bde1700 100644 (file)
@@ -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;