From 93c4bf98f1fed588ef05e573e285382c9614014c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 27 May 2007 15:02:05 +0000 Subject: [PATCH] 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 --- src/kits/interface/View.cpp | 2 -- .../kits/interface/layout/widget_layout_test/ButtonTest.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index be59eed93d..46c28bcc69 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -2129,8 +2129,6 @@ BView::SetFont(const BFont* font, uint32 mask) fState->font_flags |= mask; - InvalidateLayout(); - if (fOwner) { check_lock(); do_owner_check(); diff --git a/src/tests/kits/interface/layout/widget_layout_test/ButtonTest.cpp b/src/tests/kits/interface/layout/widget_layout_test/ButtonTest.cpp index 7002b8087a..a2c3392ab3 100644 --- a/src/tests/kits/interface/layout/widget_layout_test/ButtonTest.cpp +++ b/src/tests/kits/interface/layout/widget_layout_test/ButtonTest.cpp @@ -126,5 +126,7 @@ ButtonTest::_SetButtonFont(bool bigFont) // set font fButton->SetFont(bigFont ? fBigFont : fDefaultFont); + fButton->InvalidateLayout(); + fButton->Invalidate(); } }