commit 6657c61e5d9e9926831be579de65d1e86740d2a8
Author: Juergen Spitzmueller <[email protected]>
Date: Wed Aug 6 14:23:46 2025 +0200
Handle other case of invalid * column specification (rest of #13210)
---
src/tex2lyx/table.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tex2lyx/table.cpp b/src/tex2lyx/table.cpp
index 4425e773c5..c9d05b45b4 100644
--- a/src/tex2lyx/table.cpp
+++ b/src/tex2lyx/table.cpp
@@ -512,8 +512,8 @@ void handle_colalign(Parser & p, vector<ColInfo> & colinfo,
continue;
// *{n}{arg} means 'n' columns of type 'arg'
string const num = p.verbatim_item();
- string const arg = p.verbatim_item();
- if (!support::isStrUnsignedInt(num)) {
+ string arg = p.getArg('{', '}');
+ if (!support::isStrUnsignedInt(num) ||
arg.empty()) {
error_message("Invalid column
specification"
" '*{" + num + "}{" +
arg + "}'.\n"
"Cannot proceed!",
true);
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs