mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Make index comparisons for XHTML output case insensitive.
This commit is contained in:
parent
5db793ff30
commit
7b6b4c4598
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user