* 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:
parent
575a68b317
commit
a89fb19365
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue