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:
Richard Heck 2009-03-18 18:47:42 +00:00
parent 3f299e466b
commit 22e1e85c8e

View File

@ -168,10 +168,11 @@ public:
// 2. Description (lexicographic) // 2. Description (lexicographic)
LayoutFile const & tc1 = LayoutFileList::get()[lhs]; LayoutFile const & tc1 = LayoutFileList::get()[lhs];
LayoutFile const & tc2 = LayoutFileList::get()[rhs]; 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()) || return (tc1.isTeXClassAvailable() && !tc2.isTeXClassAvailable()) ||
(tc1.isTeXClassAvailable() == tc2.isTeXClassAvailable() && (tc1.isTeXClassAvailable() == tc2.isTeXClassAvailable() && rel < 0);
translateIfPossible(from_utf8(tc1.description()))
< translateIfPossible(from_utf8(tc2.description())));
} }
}; };