]> git.lyx.org Git - features.git/commitdiff
* InsetMathHull (eolString):
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 14 Nov 2008 10:05:07 +0000 (10:05 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 14 Nov 2008 10:05:07 +0000 (10:05 +0000)
- 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
status.16x

index cb1d457656646c1021c0512990b534c91952343f..ff7ee540db6a1be2e14e0e1f0efdc020bcbf8825 100644 (file)
@@ -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 ";
        }
index 0c839f638c024140693506f020d9502bbf58e5b9..1177213477eb5d5326027e62a36dc6948092774d 100644 (file)
@@ -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