When a displayed inset is aligned left, align it left

The use of LYX_ALIGN_BLOCK was a mistake.

Fixes bug #12683.
This commit is contained in:
Jean-Marc Lasgouttes 2023-03-05 20:54:39 +01:00
parent 8cc13656cd
commit 7d78078838

View File

@ -621,7 +621,7 @@ LyXAlignment TextMetrics::getAlign(Paragraph const & par, Row const & row) const
if (Inset const * inset = par.getInset(row.pos())) { if (Inset const * inset = par.getInset(row.pos())) {
if (inset->rowFlags() & Display) { if (inset->rowFlags() & Display) {
if (inset->rowFlags() & AlignLeft) if (inset->rowFlags() & AlignLeft)
align = LYX_ALIGN_BLOCK; align = LYX_ALIGN_LEFT;
else if (inset->rowFlags() & AlignRight) else if (inset->rowFlags() & AlignRight)
align = LYX_ALIGN_RIGHT; align = LYX_ALIGN_RIGHT;
else else