Simplify code as suggested by Stippi.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-07-18 20:05:37 +00:00
parent cc5a68f1c1
commit 43d808c01d

View File

@ -754,11 +754,7 @@ DefaultDecorator::_SetTitle(const char* string, BRegion* updateRegion)
if (updateRegion == NULL)
return;
BRect updatedRect = TabRect();
if (rect.left > updatedRect.left)
rect.left = updatedRect.left;
if (rect.right < updatedRect.right)
rect.right = updatedRect.right;
rect = rect | TabRect();
rect.bottom++;
// the border will look differently when the title is adjacent