Tracker InfoWindow: cleanup of size string invalidation code

Should fix #15351.
This commit is contained in:
Adrien Destugues
2019-09-23 20:25:33 +02:00
parent 79e2e1b971
commit 23d6916acd
@@ -737,10 +737,7 @@ GeneralInfoView::CheckAndSetSize()
} else } else
return; return;
BRect bounds(Bounds()); SetSizeString(fSizeString);
float lineHeight = CurrentFontHeight() + 2;
bounds.Set(fDivider, 0, bounds.right, lineHeight);
Invalidate(bounds);
} }
@@ -1030,9 +1027,8 @@ GeneralInfoView::SetSizeString(const char* sizeString)
{ {
fSizeString = sizeString; fSizeString = sizeString;
BRect bounds(Bounds());
float lineHeight = CurrentFontHeight() + 6; float lineHeight = CurrentFontHeight() + 6;
bounds.Set(fDivider, 0, bounds.right, lineHeight); BRect bounds(fDivider, 0, Bounds().right, lineHeight);
Invalidate(bounds); Invalidate(bounds);
} }