]> git.lyx.org Git - lyx.git/commitdiff
Correctly skip a bottom caption
authorEnrico Forestieri <forenr@lyx.org>
Sat, 17 Jun 2017 12:01:42 +0000 (14:01 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 17 Jun 2017 12:01:42 +0000 (14:01 +0200)
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

index af2abeb82ff2c54c5a210c990b7f45e4f4126e3b..ab000939b811bd4b5199eed56e04e6ee3e9ac016 100644 (file)
@@ -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);
                        }
                }