[LyX/master] tex2lyx: Correctly handle alignment with fixed width columns

Juergen Spitzmueller <[email protected]>
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit d191cc325cfb1278c451afe233f059e3d36b597f
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Apr 23 12:41:57 2026 +0200

    tex2lyx: Correctly handle alignment with fixed width columns
---
 src/tex2lyx/table.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tex2lyx/table.cpp b/src/tex2lyx/table.cpp
index eeed300d65..00d2bb58f6 100644
--- a/src/tex2lyx/table.cpp
+++ b/src/tex2lyx/table.cpp
@@ -437,7 +437,7 @@ void handle_colalign(Parser & p, vector<ColInfo> & colinfo,
 				// new column, vertical aligned box
 				next.valign = t.character();
 				next.width = p.verbatim_item();
-				if (!next.special.empty()) {
+				if (!next.special.empty() || next.align != 'n') {
 					ci2special(next);
 					// handle decimal separator
 					if (next.decimal_point != '\0') {
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.