mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #10177.
The left margin given at class level should apply only to the main text.
(cherry picked from commit a007b65202
)
This commit is contained in:
parent
b060c46387
commit
1d22d23808
@ -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) {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user