Fixed CID 1033: fMouseDownBounds will never be null as we do a new BBitmap before we check for NULL

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27448 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Modeen
2008-09-12 11:32:40 +00:00
parent 1e8da5fd15
commit ba65711eb2
+1 -4
View File
@@ -99,10 +99,7 @@ MouseView::MouseView(BRect rect, const MouseSettings &settings)
//fMouseBitmap = BTranslationUtils::GetBitmap(B_PNG_FORMAT, "mouse_bmap");
//fMouseDownBitmap = BTranslationUtils::GetBitmap(B_PNG_FORMAT, "pressed_mouse_bmap");
if (fMouseDownBitmap != NULL)
fMouseDownBounds = fMouseDownBitmap->Bounds();
else
fMouseDownBounds.Set(0, 0, 55, 29);
fMouseDownBounds = fMouseDownBitmap->Bounds();
}