* on R5, invalid BRects cannot be used with FillRect(), Haiku is

compatible now. This fixes the last remaining drawing bug in
 SoundRecorder.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18838 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-09-14 17:54:17 +00:00
parent 575a68b317
commit a89fb19365
1 changed files with 5 additions and 0 deletions

View File

@ -2676,6 +2676,11 @@ BView::FillRect(BRect rect, ::pattern pattern)
if (fOwner == NULL)
return;
// NOTE: ensuring compatibility with R5,
// invalid rects are not filled, they are stroked though!
if (!rect.IsValid())
return;
check_lock();
_UpdatePattern(pattern);