From: Václav Slavík Date: Sat, 9 Feb 2002 15:58:00 +0000 (+0000) Subject: fix for broken color parsing in wxXPMDecoder (thanks to H.H.Chou) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1943c8778ac88b2704c9a839cc5d9b689c54afb2 fix for broken color parsing in wxXPMDecoder (thanks to H.H.Chou) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/xpmdecod.cpp b/src/common/xpmdecod.cpp index 05113e9ab8..68c99def3f 100644 --- a/src/common/xpmdecod.cpp +++ b/src/common/xpmdecod.cpp @@ -702,7 +702,7 @@ wxImage wxXPMDecoder::ReadData(const char **xpm_data) { for (i_key = 0; i_key < chars_per_pixel; i_key++) key[i_key] = (wxChar)xpm_data[1 + i][i_key]; - clr_def = ParseColor(xpm_data[1 + i]); + clr_def = ParseColor(xpm_data[1 + i] + chars_per_pixel); clr_data = new wxXPMColourMapData; if ( clr_def == NULL )