]> git.lyx.org Git - features.git/commitdiff
Enable previews to work with qt too.
authorAngus Leeming <leeming@lyx.org>
Thu, 15 Aug 2002 19:52:59 +0000 (19:52 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 15 Aug 2002 19:52:59 +0000 (19:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5007 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/lyx_gui.C

index cca9d2dabbf98909b160558e6db1fe4564a574fc..4fba775304ab03d45f420d62ef0e227b6b7e23d1 100644 (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:
index b0d3b460e322ff50e67551a5d7eda22d873fe9ff..ee6fb7ad01155b9b3887645a65c95c8fa179affc 100644 (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(), "#");
 }