aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-03-25 07:33:00 +0000
committernyamatongwe <devnull@localhost>2005-03-25 07:33:00 +0000
commite5ec943aa33a1c41cb54734152b16d713e530cd1 (patch)
tree816b43031f4005d2e98a39c0aa632a099a59cdfd /src
parent1b61745b3bf98bc8574867de0e1a88964b7b2095 (diff)
downloadscintilla-mirror-e5ec943aa33a1c41cb54734152b16d713e530cd1.tar.gz
Patch from Blair McGlashan in bug #1168430 to reallocate colours when changing a pixmap.
Diffstat (limited to 'src')
-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;
}
}