mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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;
|
int l_margin = 0;
|
||||||
|
|
||||||
if (text_->isMainText())
|
if (text_->isMainText()) {
|
||||||
l_margin += bv_->leftMargin();
|
l_margin += bv_->leftMargin();
|
||||||
|
|
||||||
l_margin += bfm.signedWidth(tclass.leftmargin());
|
l_margin += bfm.signedWidth(tclass.leftmargin());
|
||||||
|
}
|
||||||
|
|
||||||
int depth = par.getDepth();
|
int depth = par.getDepth();
|
||||||
if (depth != 0) {
|
if (depth != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user