From 1c44bb215761366278902e794ff1c9af64012ead Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Tue, 2 Aug 2011 22:20:12 +0000 Subject: [PATCH] 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 --- src/servers/app/decorator/DefaultDecorator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/servers/app/decorator/DefaultDecorator.cpp b/src/servers/app/decorator/DefaultDecorator.cpp index 0dc34cdd5d..7b07782169 100644 --- a/src/servers/app/decorator/DefaultDecorator.cpp +++ b/src/servers/app/decorator/DefaultDecorator.cpp @@ -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; }