GuiBox: remove none from the static color list

It is not used anyway and it prevents sorting.
This commit is contained in:
Juergen Spitzmueller 2015-05-18 13:10:32 +02:00
parent 47bee41ea3
commit bca8f5a940

View File

@ -80,7 +80,6 @@ static QStringList boxGuiSpecialLengthNames()
static QList<ColorCode> colors() static QList<ColorCode> colors()
{ {
QList<ColorCode> colors; QList<ColorCode> colors;
colors << Color_none;
colors << Color_black; colors << Color_black;
colors << Color_white; colors << Color_white;
colors << Color_blue; colors << Color_blue;
@ -173,7 +172,7 @@ void GuiBox::fillComboColor(QComboBox * combo, bool const is_none)
if (is_none) if (is_none)
combo->addItem(toqstr(translateIfPossible(lcolor.getGUIName(Color_none))), combo->addItem(toqstr(translateIfPossible(lcolor.getGUIName(Color_none))),
toqstr(lcolor.getLaTeXName(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) { for (; cit != color_codes_.end(); ++cit) {
QString const latexname = toqstr(lcolor.getLaTeXName(*cit)); QString const latexname = toqstr(lcolor.getLaTeXName(*cit));
QString const guiname = toqstr(translateIfPossible(lcolor.getGUIName(*cit))); QString const guiname = toqstr(translateIfPossible(lcolor.getGUIName(*cit)));