Calling BStatusBar::Update() with NULL as either string argument should

keep the current string. (Untested)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26379 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-07-11 11:38:51 +00:00
parent 2cbb2916a7
commit ea1b25f5d1
+5
View File
@@ -361,6 +361,11 @@ BStatusBar::SetMaxValue(float max)
void
BStatusBar::Update(float delta, const char* text, const char* trailingText)
{
// If any of these are NULL, the existing text remains (BeBook)
if (text == NULL)
text = fText.String();
if (trailingText == NULL)
trailingText = fTrailingText.String();
BStatusBar::SetTo(fCurrent + delta, text, trailingText);
}