CtrlLib: Fix of recent fix in Multibutton

git-svn-id: svn://ultimatepp.org/upp/trunk@1536 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-08-25 09:32:12 +00:00
parent 6626fafb9a
commit 944a02142f

View file

@ -447,7 +447,7 @@ void MultiButton::Paint(Draw& w)
void MultiButton::MouseMove(Point p, dword flags)
{
int h = FindButton(p.x);
Ctrl::Tip(h >= 0 ? Nvl(button[hl].tip, tip) : tip);
Ctrl::Tip(h >= 0 && h < button.GetCount() ? Nvl(button[h].tip, tip) : tip);
if(hl != h) {
hl = h;
Refresh();