]> git.lyx.org Git - features.git/commitdiff
please Abdel.
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 13 Feb 2010 13:38:01 +0000 (13:38 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 13 Feb 2010 13:38:01 +0000 (13:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33463 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNomencl.cpp

index 90c7258a4d739f64c8f1f39f840e56dcf4efd4db..25df98842ce363a6ba0759aabc2fdf0c0861bc96 100644 (file)
@@ -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