From: Juergen Spitzmueller Date: Mon, 18 May 2015 11:10:32 +0000 (+0200) Subject: GuiBox: remove none from the static color list X-Git-Tag: 2.2.0alpha1~768 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bca8f5a94038614bc6363caa0d1169e483e08b04;p=features.git 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 123c286845..4334f7953e 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -80,7 +80,6 @@ static QStringList boxGuiSpecialLengthNames() static QList colors() { QList 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::const_iterator cit = color_codes_.begin() + 1; + QList::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)));