Tracker InfoWindow: cleanup of size string invalidation code
Should fix #15351.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user