* QPrefsDialog::QPrefsDialog():

- 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
This commit is contained in:
Abdelrazak Younes 2006-03-21 12:49:43 +00:00
parent 4213d1851a
commit 6c2e78e128

View File

@ -44,6 +44,7 @@
#include "gettext.h" #include "gettext.h"
#include "LColor.h" #include "LColor.h"
#include "lcolorcache.h"
#include "controllers/ControlPrefs.h" #include "controllers/ControlPrefs.h"
@ -168,9 +169,8 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|| lc == LColor::ignore) continue; || lc == LColor::ignore) continue;
colors_.push_back(lc); colors_.push_back(lc);
string const x11name(lcolor.getX11Name(lc));
string const guiname(lcolor.getGUIName(lc)); string const guiname(lcolor.getGUIName(lc));
QColorItem * ci(new QColorItem(QColor(toqstr(x11name)), QColorItem * ci(new QColorItem(lcolorcache.get(lc),
toqstr(guiname))); toqstr(guiname)));
colorsModule->lyxObjectsLB->insertItem(ci); colorsModule->lyxObjectsLB->insertItem(ci);
} }