of course, GetPreferredSize() is defined void

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15077 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-11-22 19:17:12 +00:00
parent 45b013192a
commit bbbe5a3329

View File

@ -165,8 +165,10 @@ void BStringView::ResizeToPreferred()
//------------------------------------------------------------------------------
void BStringView::GetPreferredSize(float* width, float* height)
{
if (!fText)
return BView::GetPreferredSize(width, height);
if (!fText) {
BView::GetPreferredSize(width, height);
return;
}
BFont font;
GetFont(&font);