From 86eeea75665030f3e38432d2d757099b46524235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 12 Oct 2008 09:54:39 +0000 Subject: [PATCH] * InsetSpecialChar.cpp: - \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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }