]> git.lyx.org Git - features.git/commitdiff
GuiBox: remove none from the static color list
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2015 11:10:32 +0000 (13:10 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2015 11:10:32 +0000 (13:10 +0200)
It is not used anyway and it prevents sorting.

src/frontends/qt4/GuiBox.cpp

index 123c2868456352d4345e93c08bf6a4611bbcb76e..4334f7953ea56c5f8f44eb9f68e03f843ff626de 100644 (file)
@@ -80,7 +80,6 @@ static QStringList boxGuiSpecialLengthNames()
 static QList<ColorCode> colors()
 {
        QList<ColorCode> colors;
-       colors << Color_none;
        colors << Color_black;
        colors << Color_white;
        colors << Color_blue;
@@ -173,7 +172,7 @@ void GuiBox::fillComboColor(QComboBox * combo, bool const is_none)
        if (is_none)
                combo->addItem(toqstr(translateIfPossible(lcolor.getGUIName(Color_none))),
                               toqstr(lcolor.getLaTeXName(Color_none)));
-       QList<ColorCode>::const_iterator cit = color_codes_.begin() + 1;
+       QList<ColorCode>::const_iterator cit = color_codes_.begin();
        for (; cit != color_codes_.end(); ++cit) {
                QString const latexname = toqstr(lcolor.getLaTeXName(*cit));
                QString const guiname = toqstr(translateIfPossible(lcolor.getGUIName(*cit)));