Small fix for 80 char/line limit.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27655 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-09-20 15:37:47 +00:00
parent a682d9819f
commit 18fe1bf6fb

View File

@ -1858,8 +1858,10 @@ BMenu::_LayoutItems(int32 index)
BSize BSize
BMenu::_ValidatePreferredSize() BMenu::_ValidatePreferredSize()
{ {
if (!fLayoutData->preferred.IsWidthSet() || ResizingMode() != fLayoutData->lastResizingMode) if (!fLayoutData->preferred.IsWidthSet() || ResizingMode()
!= fLayoutData->lastResizingMode) {
_ComputeLayout(0, true, false, NULL, NULL); _ComputeLayout(0, true, false, NULL, NULL);
}
return fLayoutData->preferred; return fLayoutData->preferred;
} }