- fix from Edwin Leuven: colorsModule did not recognize colornames grey40, etc.
- delete unused variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13445
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "gettext.h"
#include "LColor.h"
+#include "lcolorcache.h"
#include "controllers/ControlPrefs.h"
|| lc == LColor::ignore) continue;
colors_.push_back(lc);
- string const x11name(lcolor.getX11Name(lc));
string const guiname(lcolor.getGUIName(lc));
- QColorItem * ci(new QColorItem(QColor(toqstr(x11name)),
+ QColorItem * ci(new QColorItem(lcolorcache.get(lc),
toqstr(guiname)));
colorsModule->lyxObjectsLB->insertItem(ci);
}