Browse Source

Since 45ef6924 the last local-local tab still had space for close button reserved

Source commit: 042423a21991008ef7ca2918588860feb59f8595
Martin Prikryl 4 years ago
parent
commit
5551c3b2fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/components/ThemePageControl.cpp

+ 1 - 1
source/components/ThemePageControl.cpp

@@ -120,7 +120,7 @@ void TThemeTabSheet::UpdateCaption()
 
   TThemePageControl * ParentPageControl = GetParentPageControl();
 
-  if (UseThemes())
+  if (UseThemes() && (Button != ttbNone))
   {
     int OrigWidth = ParentPageControl->Canvas->TextWidth(ACaption);
     int TabButtonWidth = ParentPageControl->TabButtonSize();