Check if the dirty region is valid. Part of #7896.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2011-08-02 22:20:12 +00:00
parent 39b96f9e92
commit 1c44bb2157
@@ -1247,7 +1247,8 @@ DefaultDecorator::_ResizeBy(BPoint offset, BRegion* dirty)
if (fTitleBarRect.IsValid()) {
if (fTabList.CountItems() > 1) {
_DoTabLayout();
dirty->Include(fTitleBarRect);
if (dirty != NULL)
dirty->Include(fTitleBarRect);
return;
}