Update row width when inset is indented

Fixes bug #10758
This commit is contained in:
Jean-Marc Lasgouttes 2017-09-11 12:40:40 +02:00
parent a0c567d96f
commit 3f1944a7c9

View File

@ -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())) {