Remove check for a supplied bytesPerRow < 0. Negative values are valid and

indicate that a default bytes per row for a certain color space and width
should be used (B_ANY_BYTES_PER_ROW). Fixes CID 55.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-09-22 17:49:33 +00:00
parent 4a47b14ea4
commit e55f4dd23c

View File

@ -666,7 +666,7 @@ BBitmap::ImportBits(const void *data, int32 length, int32 bpr,
if (InitCheck() != B_OK)
return B_NO_INIT;
if (!data || length < 0 || bpr < 0 || width < 0 || height < 0)
if (!data || length < 0 || width < 0 || height < 0)
return B_BAD_VALUE;
if (bpr < 0)