mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 10:11:21 +00:00
Fix preferences>Colors problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1379 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
65c0c3750a
commit
92d2fdea55
@ -1,3 +1,8 @@
|
||||
2001-01-23 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* FormPreferences.C (LoadBrowserLyX): convert unsigned short to
|
||||
unsigned char correctly and so fix 2 bugs loading/changing colors.
|
||||
|
||||
2001-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* src/lyx_gui.C (LyXGUI): force the LC_NUMERIC locale to "C" after
|
||||
|
@ -806,9 +806,9 @@ void FormPreferences::Colors::LoadBrowserLyX()
|
||||
// Note that X stores the RGB values in the range 0 - 65535
|
||||
// whilst we require them in the range 0 - 255.
|
||||
RGBColor col;
|
||||
col.r = static_cast<unsigned char>(xcol.red);
|
||||
col.g = static_cast<unsigned char>(xcol.green);
|
||||
col.b = static_cast<unsigned char>(xcol.blue);
|
||||
col.r = xcol.red / 256;
|
||||
col.g = xcol.green / 256;
|
||||
col.b = xcol.blue / 256;
|
||||
|
||||
// Create a valid X11 name of the form "#rrggbb" and change the
|
||||
// LColor X11name to this. Don't want to trigger a redraw,
|
||||
|
Loading…
Reference in New Issue
Block a user