mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 21:45:23 +00:00
Update row width when inset is indented
Fixes bug #10758
(cherry picked from commit 3f1944a7c9
)
This commit is contained in:
parent
e013df6d8a
commit
e781628575
@ -640,8 +640,10 @@ void TextMetrics::computeRowMetrics(Row & row, int width) const
|
|||||||
break;
|
break;
|
||||||
case LYX_ALIGN_LEFT:
|
case LYX_ALIGN_LEFT:
|
||||||
// a displayed inset that is flushed
|
// 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.left_margin += inset->indent(*bv_);
|
||||||
|
row.dimension().wid += inset->indent(*bv_);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case LYX_ALIGN_RIGHT:
|
case LYX_ALIGN_RIGHT:
|
||||||
if (Inset const * inset = par.getInset(row.pos())) {
|
if (Inset const * inset = par.getInset(row.pos())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user