From 7369a0a88166c354b5206624937aa78fd4811024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 13 Feb 2010 13:38:01 +0000 Subject: [PATCH] please Abdel. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33463 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNomencl.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 90c7258a4d..25df98842c 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -269,25 +269,25 @@ docstring nomenclWidest(Buffer const & buffer, OutputParams const & runparams) } } // return the widest (or an empty) string - if (!symb.empty()) { - docstring latex_symb; - for (size_t n = 0; n < symb.size(); ++n) { - try { - latex_symb += runparams.encoding->latexChar(symb[n]); - } catch (EncodingException & /* e */) { - if (runparams.dryrun) { - latex_symb += "<" + _("LyX Warning: ") - + _("uncodable character") + " '"; - latex_symb += docstring(1, symb[n]); - latex_symb += "'>"; - } + if (symb.empty()) + return symb; + + docstring latex_symb; + for (size_t n = 0; n < symb.size(); ++n) { + try { + latex_symb += runparams.encoding->latexChar(symb[n]); + } catch (EncodingException & /* e */) { + if (runparams.dryrun) { + latex_symb += "<" + _("LyX Warning: ") + + _("uncodable character") + " '"; + latex_symb += docstring(1, symb[n]); + latex_symb += "'>"; } } - return latex_symb; } - return symb; -} + return latex_symb; } +} // namespace anon int InsetPrintNomencl::latex(odocstream & os, OutputParams const & runparams_in) const