From a89fb19365583f91f7e1652ef733d48712915eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 14 Sep 2006 17:54:17 +0000 Subject: [PATCH] * 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 --- src/kits/interface/View.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 0a580131d6..3fb5994232 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -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);