]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
wxX11:
[wxWidgets.git] / src / common / xpmdecod.cpp
index 05113e9ab8b470b5ba645fd9530e1d7d0b0e218b..68c99def3fa170cacd00ae3e59968fa61080a9cf 100644 (file)
@@ -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 )