Fix SpaceMonitor crash. Verified that R5 and/or Zeta in fact do *not*
Invalidate() on SetMaxValue(). This should probably be revisited in the future whenever we break binary compat. TODO note added to that effect. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24468 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c57db7d007
commit
e51a01a517
@ -343,8 +343,11 @@ BStatusBar::SetTrailingText(const char* string)
|
||||
void
|
||||
BStatusBar::SetMaxValue(float max)
|
||||
{
|
||||
// R5 and/or Zeta's SetMaxValue does not trigger an invalidate here.
|
||||
// this is probably not ideal behavior, but it does break apps in some cases
|
||||
// as observed with SpaceMonitor.
|
||||
// TODO: revisit this when we break binary compatibility
|
||||
fMax = max;
|
||||
Invalidate(_BarFrame());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user