From e781628575276d48d71df6ebb44aad56f12d21f4 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 11 Sep 2017 12:40:40 +0200 Subject: [PATCH] Update row width when inset is indented Fixes bug #10758 (cherry picked from commit 3f1944a7c97444c6cb5b74a1772ac17f13012902) --- src/TextMetrics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index e3a1f26092..6c5a322277 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -640,8 +640,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())) { -- 2.39.5