Style fix.

This commit is contained in:
Adrien Destugues
2013-01-25 22:29:41 +01:00
parent fdb61e9836
commit 95a11c765d
+2 -2
View File
@@ -379,7 +379,7 @@ BScrollBar::SetValue(float value)
value = fMax; value = fMax;
else if (value < fMin) else if (value < fMin)
value = fMin; value = fMin;
else if(isnan(value)) else if (isnan(value))
return; return;
value = roundf(value); value = roundf(value);
@@ -410,7 +410,7 @@ BScrollBar::ValueChanged(float newValue)
{ {
TRACE("BScrollBar(%s)::ValueChanged(%.1f)\n", Name(), newValue); TRACE("BScrollBar(%s)::ValueChanged(%.1f)\n", Name(), newValue);
if (fTarget && newValue) { if (fTarget) {
// cache target bounds // cache target bounds
BRect targetBounds = fTarget->Bounds(); BRect targetBounds = fTarget->Bounds();
// if vertical, check bounds top and scroll if different from newValue // if vertical, check bounds top and scroll if different from newValue