From 000b7f3f46e0170f6a3afdd24d96ff5d440f22bc Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 17 Jun 2017 14:01:42 +0200 Subject: [PATCH] Correctly skip a bottom caption The getArg() method stops at the first closing brace, whether it matches the opening one or not, so properly parse the caption and then throw it away. --- src/tex2lyx/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index af2abeb82f..ab000939b8 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -3903,7 +3903,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, } else { // We already got the caption at the bottom, // so simply skip it. - p.getArg('{', '}'); + parse_text_snippet(p, FLAG_ITEM, false, context); } }