Enable previews to work with qt too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5007 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-08-15 19:52:59 +00:00
parent 48be032be3
commit 3c5fe62f97
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-08-15 Angus Leeming <leeming@lyx.org>
* lyx_gui.C (hexname): enable previews to work!
2002-08-15 Angus Leeming <leeming@lyx.org>
* Dialogs.C:

View File

@ -12,6 +12,7 @@
#include "support/lyxlib.h"
#include "support/os.h"
#include "support/filetools.h"
#include "support/lstrings.h"
#include "debug.h"
#include "gettext.h"
@ -126,7 +127,7 @@ void lyx_gui::exit()
string const lyx_gui::hexname(LColor::color col)
{
QColor color(lcolor.getX11Name(col).c_str());
return color.name().latin1();
return ltrim(color.name().latin1(), "#");
}