X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FTextMetrics.cpp;h=cacf2e7ea65326ff73312eebe12b97e01d4df631;hb=4ea6d81437ec7b5bea165d78ca37cb163e262042;hp=e5345dd0405c7cd775dfc0dbd5de582aa846c713;hpb=be62d98dcf5cab618df4e7f9fd3501b8ce01f311;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index e5345dd040..cacf2e7ea6 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1573,7 +1573,7 @@ void TextMetrics::deleteLineForward(Cursor & cur) if (!cur.selection()) text_->deleteWordForward(cur); else - cap::cutSelection(cur, true, false); + cap::cutSelection(cur, false); cur.checkBufferStructure(); } } @@ -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) {