X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphMetrics.cpp;h=fc71943377ce0f76c7d9140e50ecec7bfaa22a12;hb=a01cb111a07717a337c18860216359cdbe22af3c;hp=12f387d18f37e3680a15b69552387a41cee41e99;hpb=258cca4b3be2353a5c4f9a677e7f03246411e3d1;p=features.git diff --git a/src/ParagraphMetrics.cpp b/src/ParagraphMetrics.cpp index 12f387d18f..fc71943377 100644 --- a/src/ParagraphMetrics.cpp +++ b/src/ParagraphMetrics.cpp @@ -203,7 +203,7 @@ int ParagraphMetrics::rightMargin(BufferView const & bv) const int const r_margin = bv.rightMargin() + fm.signedWidth(tclass.rightmargin()) - + fm.signedWidth(par_->layout()->rightmargin) + + fm.signedWidth(par_->layout().rightmargin) * 4 / (par_->getDepth() + 4); return r_margin; @@ -260,7 +260,7 @@ bool ParagraphMetrics::hfillExpansion(Row const & row, pos_type pos) const } // do not expand in some labels - if (par_->layout()->margintype != MARGIN_MANUAL && pos < par_->beginOfBody()) + if (par_->layout().margintype != MARGIN_MANUAL && pos < par_->beginOfBody()) return false; // if there is anything between the first char of the row and