hrev53514 adds 1 changeset to branch 'master'
old head: 79e2e1b97130cbf882f09ab13c2101a76e78f8db
new head: 23d6916acd20e0d8f9c902678c8f8698be1378aa
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=23d6916acd20+%5E79e2e1b97130
----------------------------------------------------------------------------
23d6916acd20: Tracker InfoWindow: cleanup of size string invalidation code
Should fix #15351.
[ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev53514
Commit: 23d6916acd20e0d8f9c902678c8f8698be1378aa
URL: https://git.haiku-os.org/haiku/commit/?id=23d6916acd20
Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date: Mon Sep 23 18:24:04 2019 UTC
Ticket: https://dev.haiku-os.org/ticket/15351
----------------------------------------------------------------------------
1 file changed, 2 insertions(+), 6 deletions(-)
src/kits/tracker/infowindow/GeneralInfoView.cpp | 8 ++------
----------------------------------------------------------------------------
diff --git a/src/kits/tracker/infowindow/GeneralInfoView.cpp
b/src/kits/tracker/infowindow/GeneralInfoView.cpp
index 0548c02f66..eae27a7b43 100644
--- a/src/kits/tracker/infowindow/GeneralInfoView.cpp
+++ b/src/kits/tracker/infowindow/GeneralInfoView.cpp
@@ -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);
}