From: Jean-Marc Lasgouttes Date: Mon, 11 Sep 2017 10:40:40 +0000 (+0200) Subject: Update row width when inset is indented X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4564 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3f1944a7c97444c6cb5b74a1772ac17f13012902;p=features.git Update row width when inset is indented Fixes bug #10758 --- diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 3d7e4aec49..21d34bc7c5 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -649,8 +649,10 @@ void TextMetrics::computeRowMetrics(Row & row, int width) const break; case LYX_ALIGN_LEFT: // a displayed inset that is flushed - if (Inset const * inset = par.getInset(row.pos())) + if (Inset const * inset = par.getInset(row.pos())) { row.left_margin += inset->indent(*bv_); + row.dimension().wid += inset->indent(*bv_); + } break; case LYX_ALIGN_RIGHT: if (Inset const * inset = par.getInset(row.pos())) {