Browse Source

Quick fix for setbuttonimage

import/tags/kmeleon75
boisso 8 years ago
parent
commit
9e73e94d1f
  1. 13
      k-meleon/Plugins.cpp

13
k-meleon/Plugins.cpp

@ -1832,14 +1832,19 @@ bool SetButton(const char* name, UINT id, kmeleonButton* button)
if (button->checked != -1)
b->mChecked = button->checked;
if (button->coldimage) {
KmImage img;
if (!t->LoadImage(A2CT(button->coldimage), img, button->iconWidth, button->iconHeight))
return false;
if (!t->mCold.m_hImageList) {
if (theApp.skin.mImages) {
KmImage img;
if (t->LoadImage(A2CT(button->coldimage), img)) {
img.AddToImageList(theApp.skin.mImages->mCold, theApp.skin.GetIconIndex(id));
}
img.AddToImageList(theApp.skin.mImages->mCold, theApp.skin.GetIconIndex(id));
}
}
else {
img.AddToImageList(t->mCold, b->mImageIndex);
}
b->mColdImage = A2CT(button->coldimage);
}
return true;

Loading…
Cancel
Save