Reverted r21191. The one who calls BView::SetFont() is responsible for
also calling InvalidateLayout() and Invalidate(), if necessary. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21251 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2129,8 +2129,6 @@ BView::SetFont(const BFont* font, uint32 mask)
|
|||||||
|
|
||||||
fState->font_flags |= mask;
|
fState->font_flags |= mask;
|
||||||
|
|
||||||
InvalidateLayout();
|
|
||||||
|
|
||||||
if (fOwner) {
|
if (fOwner) {
|
||||||
check_lock();
|
check_lock();
|
||||||
do_owner_check();
|
do_owner_check();
|
||||||
|
|||||||
@@ -126,5 +126,7 @@ ButtonTest::_SetButtonFont(bool bigFont)
|
|||||||
|
|
||||||
// set font
|
// set font
|
||||||
fButton->SetFont(bigFont ? fBigFont : fDefaultFont);
|
fButton->SetFont(bigFont ? fBigFont : fDefaultFont);
|
||||||
|
fButton->InvalidateLayout();
|
||||||
|
fButton->Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user