* InsetSpecialChar.cpp:

- \protect nobreakdash if needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26861 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-10-12 09:54:39 +00:00
parent d45ca67d1d
commit 86eeea7566

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