Tracker InfoWindow: cleanup of size string invalidation code

Should fix #15351.
This commit is contained in:
Adrien Destugues 2019-09-23 20:24:04 +02:00
parent 79e2e1b971
commit 23d6916acd
1 changed files with 2 additions and 6 deletions

View File

@ -737,10 +737,7 @@ GeneralInfoView::CheckAndSetSize()
} else
return;
BRect bounds(Bounds());
float lineHeight = CurrentFontHeight() + 2;
bounds.Set(fDivider, 0, bounds.right, lineHeight);
Invalidate(bounds);
SetSizeString(fSizeString);
}
@ -1030,9 +1027,8 @@ GeneralInfoView::SetSizeString(const char* sizeString)
{
fSizeString = sizeString;
BRect bounds(Bounds());
float lineHeight = CurrentFontHeight() + 6;
bounds.Set(fDivider, 0, bounds.right, lineHeight);
BRect bounds(fDivider, 0, Bounds().right, lineHeight);
Invalidate(bounds);
}