]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.cpp
Revert "Do not crash is release mode if we stumble across an unrealized font."
[lyx.git] / src / insets / InsetLabel.cpp
index 9171cd1e362a96fd08d21be87b05cefa6b9e76db..553c6d7b969bac5cb09fcf1f26862c4a99509328 100644 (file)
@@ -295,8 +295,8 @@ docstring InsetLabel::xhtml(XHTMLStream & xs, OutputParams const &) const
        // id here to get the document to validate as XHTML 1.1. This will cause a 
        // problem with some browsers, though, I'm sure. (Guess which!) So we will
        // have to figure out what to do about this later. 
-       string const attr = "id=\"" + html::cleanAttr(to_utf8(getParam("name"))) + "\"";
-       xs << html::CompTag("a", attr);
+       docstring const attr = "id=\"" + html::cleanAttr(getParam("name")) + '"';
+       xs << html::CompTag("a", to_utf8(attr));
        return docstring();
 }