From 36b83da43d1726d8c085f605690f000bfa2b4862 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 9 Jun 2005 09:11:25 +0000 Subject: [PATCH] fBounds.top wasn't resetted when the label was cleared. Thanks to Korli for reporting this. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13025 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Box.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kits/interface/Box.cpp b/src/kits/interface/Box.cpp index 19cc2ed025..4a93a1c78a 100644 --- a/src/kits/interface/Box.cpp +++ b/src/kits/interface/Box.cpp @@ -439,6 +439,8 @@ BBox::DrawFancy() void BBox::ClearAnyLabel() { + fBounds.top = 0; + if (fLabel) { free(fLabel); fLabel = NULL;