Style fix.

This commit is contained in:
Adrien Destugues 2013-01-25 22:29:41 +01:00
parent fdb61e9836
commit 95a11c765d

View File

@ -379,7 +379,7 @@ BScrollBar::SetValue(float value)
value = fMax;
else if (value < fMin)
value = fMin;
else if(isnan(value))
else if (isnan(value))
return;
value = roundf(value);
@ -410,7 +410,7 @@ BScrollBar::ValueChanged(float newValue)
{
TRACE("BScrollBar(%s)::ValueChanged(%.1f)\n", Name(), newValue);
if (fTarget && newValue) {
if (fTarget) {
// cache target bounds
BRect targetBounds = fTarget->Bounds();
// if vertical, check bounds top and scroll if different from newValue