commit 000b7f3f46e0170f6a3afdd24d96ff5d440f22bc
Author: Enrico Forestieri <[email protected]>
Date: Sat Jun 17 14:01:42 2017 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index af2abeb..ab00093 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);
}
}