Use appropriate (cheaper) conversion.

This commit is contained in:
Juergen Spitzmueller 2014-12-07 13:06:29 +01:00
parent c4bb79dd8c
commit 2614d5a386

View File

@ -1206,7 +1206,7 @@ void MenuDefinition::expandFlexInsert(
if (cit->second.lyxtype() == type) {
docstring label = cit->first;
// we remove the "Flex:" prefix, if it is present
if (prefixIs(label, from_utf8("Flex:")))
if (prefixIs(label, from_ascii("Flex:")))
label = label.substr(5);
addWithStatusCheck(MenuItem(MenuItem::Command,
toqstr(translateIfPossible(label)),