]> git.lyx.org Git - features.git/commitdiff
* InsetSpecialChar.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 12 Oct 2008 09:54:39 +0000 (09:54 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 12 Oct 2008 09:54:39 +0000 (09:54 +0000)
- \protect nobreakdash if needed.

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

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;
        }