Source commit: 042423a21991008ef7ca2918588860feb59f8595
@@ -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();