fix reading of xpm files with opaque color

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4651 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-07-16 13:36:28 +00:00
parent 6ae0dfb09f
commit 19ffdc60dc
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* GraphicsImageXPM.C (setPixmap): opaque color is black, not white
2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* GraphicsImageXPM.C (color_none_id):

View File

@ -204,7 +204,7 @@ bool GImageXPM::setPixmap(GParams const & params)
// some image magick versions use this
xpm_col[1].name = 0;
xpm_col[1].value = "opaque";
xpm_col[1].pixel = lyxColorHandler->colorPixel(LColor::white);
xpm_col[1].pixel = lyxColorHandler->colorPixel(LColor::black);
attrib.numsymbols = 2;
attrib.colorsymbols = xpm_col;