From a750126b543743396ebd4138d5efe2b9c9308dc1 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 20 Feb 2011 18:57:13 +0000 Subject: [PATCH] prevent endless loop git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37744 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 763857e513..0c49bba9da 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -425,7 +425,10 @@ docstring convert_unicodesymbols(docstring s) Encodings::TEXT_CMD); os << parsed; s = rem; - i = 0; + if (s.empty() || s[0] != '\\') + i = 0; + else + i = 1; } return os.str(); } -- 2.39.2