+2004-04-08 Angus Leeming <leeming@lyx.org>
+
+ * lyxrc.C (read): don't try to set the color of none, inherit, ignore
+ thereby squashing an unnecessary warning.
+
2004-04-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* LaTeXFeatures.[Ch]: change buffer_ to a pointer and add accessor
break;
}
- LColor::color col = lcolor.getFromLyXName(lyx_name);
+ LColor::color const col =
+ lcolor.getFromLyXName(lyx_name);
+ if (col == LColor::none ||
+ col == LColor::inherit ||
+ col == LColor::ignore)
+ break;
+
if (!lcolor.setColor(col, x11_name)) {
lyxerr << "Bad lyxrc set_color for "
<< lyx_name << endl;