]> git.lyx.org Git - features.git/commitdiff
Forgot that in r40694: There is no {} needed after \nobreakdash-
authorGeorg Baum <georg.baum@post.rwth-aachen.de>
Wed, 15 Feb 2012 20:56:40 +0000 (20:56 +0000)
committerGeorg Baum <georg.baum@post.rwth-aachen.de>
Wed, 15 Feb 2012 20:56:40 +0000 (20:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40758 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 5cfce9bec536679dfa09775526a317805aec291b..fa274e3f45ac4a09f820230b75b8ecd46389e5ea 100644 (file)
@@ -1267,7 +1267,8 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
                    && prefixIs(latex, from_ascii("\\" + script)))
                        column += writeScriptChars(os, latex,
                                        running_change, encoding, i) - 1;
-               else if (latex.length() > 1 && latex[latex.length() - 1] != '}') {
+               else if (latex.length() > 1 && latex[latex.length() - 1] != '}' &&
+                        latex[latex.length() - 1] != '-') {
                        // Prevent eating of a following
                        // space or command corruption by
                        // following characters