diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index f185ccb183..12812649c6 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -169,7 +169,8 @@ public: LayoutFile const & tc2 = LayoutFileList::get()[rhs]; return (tc1.isTeXClassAvailable() && !tc2.isTeXClassAvailable()) || (tc1.isTeXClassAvailable() == tc2.isTeXClassAvailable() && - _(tc1.description()) < _(tc2.description())); + translateIfPossible(from_utf8(tc1.description())) + < translateIfPossible(from_utf8(tc2.description()))); } };