projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef5844
)
fix for broken color parsing in wxXPMDecoder (thanks to H.H.Chou)
author
Václav Slavík
<vslavik@fastmail.fm>
Sat, 9 Feb 2002 15:58:00 +0000
(15:58 +0000)
committer
Václav Slavík
<vslavik@fastmail.fm>
Sat, 9 Feb 2002 15:58:00 +0000
(15:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14081
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/xpmdecod.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/xpmdecod.cpp
b/src/common/xpmdecod.cpp
index 05113e9ab8b470b5ba645fd9530e1d7d0b0e218b..68c99def3fa170cacd00ae3e59968fa61080a9cf 100644
(file)
--- 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 )