From: Richard Heck Date: Tue, 3 Apr 2012 21:54:50 +0000 (-0400) Subject: Make index comparisons for XHTML output case insensitive. X-Git-Tag: 2.0.4~158 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b82a856a3285d04d3c32c8d16e23f33aa688d312;p=features.git Make index comparisons for XHTML output case insensitive. --- diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp index 0bab8008bd..a9e27254ca 100644 --- a/src/insets/InsetIndex.cpp +++ b/src/insets/InsetIndex.cpp @@ -662,9 +662,12 @@ struct IndexEntry bool operator<(IndexEntry const & lhs, IndexEntry const & rhs) { - return lhs.main < rhs.main - || (lhs.main == rhs.main && lhs.sub < rhs.sub) - || (lhs.main == rhs.main && lhs.sub == rhs.sub && lhs.subsub < rhs.subsub); + int comp = compare_no_case(lhs.main, rhs.main); + if (comp == 0) + comp = compare_no_case(lhs.sub, rhs.sub); + if (comp == 0) + comp = compare_no_case(lhs.subsub, rhs.subsub); + return (comp < 0); } } // anon namespace diff --git a/status.20x b/status.20x index ed612afbc5..d31a20dc66 100644 --- a/status.20x +++ b/status.20x @@ -78,6 +78,8 @@ What's new - Fix reconfiguration on Windows when the user directory is a UNC path (bug 8098). +- Index entries in XHTML output no longer sorted case sensitively. + * USER INTERFACE