From 4154a161ede188216241ef4c8970ae27bdcc083b Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Tue, 26 Jul 2011 06:34:34 +0000 Subject: [PATCH] Set the top tab every time when adding a new tab. This draws newly stacked tabs correctly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42495 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/decorator/Decorator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/servers/app/decorator/Decorator.cpp b/src/servers/app/decorator/Decorator.cpp index 765b672a90..cd33cd6d37 100644 --- a/src/servers/app/decorator/Decorator.cpp +++ b/src/servers/app/decorator/Decorator.cpp @@ -106,8 +106,7 @@ Decorator::AddTab(const char* title, int32 index, BRegion* updateRegion) return NULL; } - if (fTopTab == NULL) - fTopTab = tab; + fTopTab = tab; _InvalidateFootprint(); return tab;