mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug 1492.
Please let me know if this doesn't work right with various langauges, makes things worse, or what have you. I posted a note to devel about this but didn't get any response, so I'm guessing it's OK. If not, we'll revert it. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28856 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3f299e466b
commit
22e1e85c8e
@ -168,10 +168,11 @@ public:
|
||||
// 2. Description (lexicographic)
|
||||
LayoutFile const & tc1 = LayoutFileList::get()[lhs];
|
||||
LayoutFile const & tc2 = LayoutFileList::get()[rhs];
|
||||
int const rel = compare_no_case(
|
||||
translateIfPossible(from_utf8(tc1.description())),
|
||||
translateIfPossible(from_utf8(tc2.description())));
|
||||
return (tc1.isTeXClassAvailable() && !tc2.isTeXClassAvailable()) ||
|
||||
(tc1.isTeXClassAvailable() == tc2.isTeXClassAvailable() &&
|
||||
translateIfPossible(from_utf8(tc1.description()))
|
||||
< translateIfPossible(from_utf8(tc2.description())));
|
||||
(tc1.isTeXClassAvailable() == tc2.isTeXClassAvailable() && rel < 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user