]> git.lyx.org Git - lyx.git/blobdiff - src/RowPainter.cpp
FindAdv: Amend ec387b6d: Handle search for '{' and '}'
[lyx.git] / src / RowPainter.cpp
index 9f9f51eb221639aae433ed702c4517822bde1700..e378f433e8ebc6d09b8d3c3012f9fd861d365dc4 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(), 1);
-               int const rightm = row_.isRTL() ? tm_.leftMargin(row_.pit(), 1)
+                                              : tm_.leftMargin(row_.pit());
+               int const rightm = row_.isRTL() ? tm_.leftMargin(row_.pit())
                                                    : tm_.rightMargin(row_.pit());
                x += leftm - row_.left_margin + (tm_.width() - leftm -rightm) / 2
                        - fm.width(str) / 2;