Squash unnecessary warning message.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8630 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-04-08 12:55:44 +00:00
parent b3bed8d879
commit cd9a2a663c
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -786,7 +786,13 @@ int LyXRC::read(LyXLex & lexrc)
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;