소스 검색

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

Source commit: 042423a21991008ef7ca2918588860feb59f8595
Martin Prikryl 4 년 전
부모
커밋
5551c3b2fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();