Small change

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13310 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2005-06-28 12:17:30 +00:00
parent ec05366603
commit 3b3a60ad5a
+3 -3
View File
@@ -363,6 +363,7 @@ BMenuItem::DrawContent()
GetContentSize(&labelWidth, &labelHeight);
// truncate if needed
// TODO: Actually, this is still never triggered
if (fBounds.Width() > labelWidth)
fSuper->DrawString(fLabel);
else {
@@ -440,7 +441,7 @@ BMenuItem::Draw()
void
BMenuItem::Highlight(bool flag)
{
Menu()->Draw(Frame());
Menu()->Invalidate(Frame());
}
@@ -605,8 +606,7 @@ BMenuItem::Select(bool on)
} else if (IsEnabled()) {
fSelected = on;
Highlight(on);
}
}
}