From 57e1ab3e63a6425f1b96f744c33056e85f4206d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 26 Oct 2008 09:48:11 +0000 Subject: [PATCH] * GuiDocument.cpp (less_textclass_avail_desc): - fix bug 5410 (use translateIfPossible() instead of _() for strings that come from layout files). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27133 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()))); } };