]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCharacter.cpp
Properly support the cite engines in the GUI
[lyx.git] / src / frontends / qt4 / GuiCharacter.cpp
index a824df7931386ccd1e3c299fdb7cf73c59f60a2b..e01687678a95194310c2f79c96b04b54256dc8b6 100644 (file)
@@ -192,15 +192,6 @@ void fillComboColor(QComboBox * combo, QList<T> const & list)
        combo->addItem(qt_("Reset"), "inherit");
 }
 
-
-struct ColorSorter
-{
-       bool operator()(ColorCode lhs, ColorCode rhs) const {
-               return
-                       support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
-       }
-};
-
 } // namespace anon
 
 GuiCharacter::GuiCharacter(GuiView & lv)
@@ -230,7 +221,7 @@ GuiCharacter::GuiCharacter(GuiView & lv)
        size   = sizeData();
        bar    = barData();
        color  = colorData();
-       sort(color.begin(), color.end(), ColorSorter());
+       qSort(color.begin(), color.end(), ColorSorter);
 
        language = languageData();
        language.prepend(LanguagePair(qt_("Reset"), "reset"));