]> git.lyx.org Git - features.git/commitdiff
Fix bug #10177.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 9 Jul 2018 01:38:00 +0000 (21:38 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 4 Oct 2018 23:44:42 +0000 (19:44 -0400)
The left margin given at class level should apply only to the main text.

(cherry picked from commit a007b65202cbc103e3e7868dcde3e754bfcd276d)

src/TextMetrics.cpp
status.23x

index 20ff864ed8ad7f02f101cdaf7bc126d1c3ceabae..cacf2e7ea65326ff73312eebe12b97e01d4df631 100644 (file)
@@ -1618,10 +1618,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) {
index 812698f7df007db2f04e6e63f817b6748a96f341..295de4887b931163f75bc57b8a01f077e5c1aff3 100644 (file)
@@ -159,6 +159,8 @@ What's new
 
 - Fix some missing screen updates (bug 11323, regression in 2.3.1).
 
+- Allow adjustment of margin settings in InsetLayout (bug 10177).
+
 
 * INTERNALS