]> git.lyx.org Git - features.git/commitdiff
* src/InsetIndex: further corrections od LaTeX output.
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 9 May 2008 09:50:18 +0000 (09:50 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 9 May 2008 09:50:18 +0000 (09:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24696 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetIndex.cpp

index da82e7e64a178d2764aafd957a3cd8c4604354cd..c6a008c5f111b79792c95eab4e12a9cb6c67355e 100644 (file)
@@ -57,7 +57,10 @@ int InsetIndex::latex(odocstream & os,
        // e.g. \index{LyX@\LyX}, \index{text@\textbf{text}}
        // Don't do that if the user entered '@' himself, though.
        if (contains(ods.str(), '\\') && !contains(ods.str(), '@')) {
-               if (InsetText::plaintext(os, runparams) > 0) {
+               odocstringstream odss;
+               if (InsetText::plaintext(odss, runparams) > 0) {
+                       // remove remaining \'s for the sorting part
+                       os << subst(odss.str(), from_ascii("\\"), docstring());
                        os << '@';
                        sorted = true;
                }