commit bca8f5a94038614bc6363caa0d1169e483e08b04
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon May 18 13:10:32 2015 +0200

    GuiBox: remove none from the static color list
    
    It is not used anyway and it prevents sorting.

diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp
index 123c286..4334f79 100644
--- a/src/frontends/qt4/GuiBox.cpp
+++ b/src/frontends/qt4/GuiBox.cpp
@@ -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)));

Reply via email to