aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/XPM.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-25 07:33:00 +0000
committernyamatongwe <unknown>2005-03-25 07:33:00 +0000
commit0e6ce8f70592a081f2a61193b45e6e51a5aa71e7 (patch)
tree816b43031f4005d2e98a39c0aa632a099a59cdfd /src/XPM.cxx
parent66622bd04e7666e7b0556b17902dc683a22bc249 (diff)
downloadscintilla-mirror-0e6ce8f70592a081f2a61193b45e6e51a5aa71e7.tar.gz
Patch from Blair McGlashan in bug #1168430 to reallocate colours when changing a pixmap.
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r--src/XPM.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx
index d3bbb4dcc..3bb23485b 100644
--- a/src/XPM.cxx
+++ b/src/XPM.cxx
@@ -261,6 +261,7 @@ void XPMSet::Add(int id, const char *textForm) {
for (int i = 0; i < len; i++) {
if (set[i]->GetId() == id) {
set[i]->Init(textForm);
+ set[i]->CopyDesiredColours();
return;
}
}