From c8ecd8d24a50142feacf7d52361040f25d8ff093 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 14 Nov 2008 10:05:07 +0000 Subject: [PATCH] * InsetMathHull (eolString): - Properly escape non-ASCII characters in equation labels (bug 5512). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27412 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 4 +++- status.16x | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index cb1d457656..ff7ee540db 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -1021,7 +1021,9 @@ docstring InsetMathHull::eolString(row_type row, bool emptyline, bool fragile) c docstring res; if (numberedType()) { if (label_[row] && !nonum_[row]) - res += "\\label{" + label_[row]->getParam("name") + '}'; + res += "\\label{" + + escape(label_[row]->getParam("name")) + + '}'; if (nonum_[row] && (type_ != hullMultline)) res += "\\nonumber "; } diff --git a/status.16x b/status.16x index 0c839f638c..1177213477 100644 --- a/status.16x +++ b/status.16x @@ -63,6 +63,8 @@ What's new - Fix possible endless loop while running lyx2lyx. +- Properly escape non-ASCII characters in equation labels (bug 5512). + * USER INTERFACE -- 2.39.2