]> git.lyx.org Git - features.git/commitdiff
* LaTeXFeatures.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 18 Jan 2009 14:00:43 +0000 (14:00 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 18 Jan 2009 14:00:43 +0000 (14:00 +0000)
- make lyxarrow robust, since \@ifstar is fragile.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28235 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp

index 271fefaa3719275089329946aba508da99ff146f..a6c08888efee983fb2af4e99f0cae4b4a8ee8920 100644 (file)
@@ -60,7 +60,7 @@ static string const lyxline_def =
 static string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
 
 static string const lyxarrow_def =
-       "\\newcommand{\\lyxarrow}{%\n"
+       "\\DeclareRobustCommand*{\\lyxarrow}{%\n"
        "\\@ifstar\n"
        "{\\leavevmode\\,$\\triangleleft$\\,\\allowbreak}\n"
        "{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}}";