fix crash when filtering layout combox with non-ascii character

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27207 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-10-31 09:26:59 +00:00
parent e47d4dee70
commit 53fdda3e7a

View File

@ -365,8 +365,9 @@ void GuiLayoutBox::setFilter(QString const & s)
filterModel_->triggerLayoutChange();
if (!s.isEmpty())
owner_.message(_("Filtering layouts with \"" + fromqstr(s) + "\". "
"Press ESC to remove filter."));
owner_.message(bformat(_("Filtering layouts with \"%1$s\". "
"Press ESC to remove filter."),
qstring_to_ucs4(s)));
else
owner_.message(_("Enter characters to filter the layout list."));
}