From: Jürgen Spitzmüller Date: Sun, 12 Oct 2008 09:54:39 +0000 (+0000) Subject: * InsetSpecialChar.cpp: X-Git-Tag: 1.6.10~3069 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=86eeea75665030f3e38432d2d757099b46524235;p=features.git * InsetSpecialChar.cpp: - \protect nobreakdash if needed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26861 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index e25cda9454..1dd92c5901 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -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; }