[LyX/master] When a displayed inset is aligned left, align it left

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sun Mar 5 18:57:00 UTC 2023


commit 7d78078838710ed154638cd6bd38885ffe927248
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Sun Mar 5 20:54:39 2023 +0100

    When a displayed inset is aligned left, align it left
    
    The use of LYX_ALIGN_BLOCK was a mistake.
    
    Fixes bug #12683.
---
 src/TextMetrics.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp
index 995b09c..7acf5ff 100644
--- a/src/TextMetrics.cpp
+++ b/src/TextMetrics.cpp
@@ -621,7 +621,7 @@ LyXAlignment TextMetrics::getAlign(Paragraph const & par, Row const & row) const
 	if (Inset const * inset = par.getInset(row.pos())) {
 		if (inset->rowFlags() & Display) {
 			if (inset->rowFlags() & AlignLeft)
-				align = LYX_ALIGN_BLOCK;
+				align = LYX_ALIGN_LEFT;
 			else if (inset->rowFlags() & AlignRight)
 				align = LYX_ALIGN_RIGHT;
 			else


More information about the lyx-cvs mailing list