From faf42dfe7894cb3051c31985427dba7eb0d6b930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 13 Nov 2009 16:46:16 +0000 Subject: [PATCH] * Disabled calling _FontChanged() on SetFont() - since any item can temporarily change the font in its DrawItem() method, this is not the way to go. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34023 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/ListView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index da9139f87c..57c89fe2b1 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -655,7 +655,10 @@ void BListView::SetFont(const BFont* font, uint32 mask) { BView::SetFont(font, mask); - _FontChanged(); + //_FontChanged(); + // TODO: this absolutely kills the performance, if a BListItem + // changes the font when drawing - if this should be called at all, + // it should only be done outside any updates! }