no Invalidate in BControl::SetValue, I figure more controls need to be updated for this change

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12947 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-06-03 19:55:49 +00:00
parent 743a147353
commit 0c3344f4a1
6 changed files with 205 additions and 175 deletions
+4 -1
View File
@@ -376,7 +376,10 @@ void BButton::DetachedFromWindow()
//------------------------------------------------------------------------------
void BButton::SetValue(int32 value)
{
BControl::SetValue(value);
if (value != Value()) {
BControl::SetValue(value);
Invalidate();
}
}
//------------------------------------------------------------------------------
void BButton::GetPreferredSize(float *width, float *height)