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