]> git.lyx.org Git - features.git/commitdiff
fix glitch with last border in table for custom arguments
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 27 Aug 2018 10:13:24 +0000 (12:13 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 27 Aug 2018 10:13:24 +0000 (12:13 +0200)
src/tex2lyx/table.cpp

index 01c7a541780e4d661628a1985c89fe243917a777..2bf5d650a59dd12a907996b469665279ebc89b26 100644 (file)
@@ -432,7 +432,7 @@ void handle_colalign(Parser & p, vector<ColInfo> & colinfo,
                                                next.special += '|';
                                } else if (colinfo.back().special.empty())
                                        ++colinfo.back().rightlines;
-                               else if (next.special.empty())
+                               else if (next.special.empty() && p.next_token().cat() != catEnd)
                                        ++next.leftlines;
                                else
                                        colinfo.back().special += '|';