]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.cpp
The last commit was, uhh, not what I intended.
[lyx.git] / src / insets / InsetSpecialChar.cpp
index e25cda94545b5cadec5497e98b7fc2970d1c2eb8..1dd92c5901a1d46a0f078fdfde7dfe8988a5afff 100644 (file)
@@ -204,7 +204,7 @@ void InsetSpecialChar::read(Lexer & lex)
 
 
 int InsetSpecialChar::latex(odocstream & os,
-                           OutputParams const &) const
+                           OutputParams const & rp) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -226,6 +226,8 @@ int InsetSpecialChar::latex(odocstream & os,
                os << "\\slash{}";
                break;
        case NOBREAKDASH:
+               if (rp.moving_arg)
+                       os << "\\protect";
                os << "\\nobreakdash-";
                break;
        }