[Haiku-commits] r27691 - haiku/trunk/src/kits/interface
mmlr at mail.berlios.de
mmlr at mail.berlios.de
Mon Sep 22 19:49:40 CEST 2008
Author: mmlr
Date: 2008-09-22 19:49:33 +0200 (Mon, 22 Sep 2008)
New Revision: 27691
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=27691&view=rev
Modified:
haiku/trunk/src/kits/interface/Bitmap.cpp
Log:
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.
Modified: haiku/trunk/src/kits/interface/Bitmap.cpp
===================================================================
--- haiku/trunk/src/kits/interface/Bitmap.cpp 2008-09-22 15:36:46 UTC (rev 27690)
+++ haiku/trunk/src/kits/interface/Bitmap.cpp 2008-09-22 17:49:33 UTC (rev 27691)
@@ -666,7 +666,7 @@
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)
More information about the Haiku-commits
mailing list