mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
Make index comparisons for XHTML output case insensitive.
This commit is contained in:
parent
8558d84d4d
commit
b82a856a32
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user