From a007b65202cbc103e3e7868dcde3e754bfcd276d Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sun, 8 Jul 2018 21:38:00 -0400 Subject: [PATCH] Fix bug #10177. The left margin given at class level should apply only to the main text. --- src/TextMetrics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 1e170286c9..82b9ebb160 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1609,10 +1609,10 @@ int TextMetrics::leftMargin(pit_type const pit, pos_type const pos) const int l_margin = 0; - if (text_->isMainText()) + if (text_->isMainText()) { l_margin += bv_->leftMargin(); - - l_margin += bfm.signedWidth(tclass.leftmargin()); + l_margin += bfm.signedWidth(tclass.leftmargin()); + } int depth = par.getDepth(); if (depth != 0) { -- 2.39.5