diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index f3ea0f8bd6..997124e9b2 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -157,6 +157,8 @@ BMenuBar::AttachedToWindow() Window()->SetKeyMenuBar(this); BMenu::AttachedToWindow(); + + *fLastBounds = Bounds(); } @@ -218,8 +220,7 @@ BMenuBar::FrameResized(float newWidth, float newHeight) BRect rect(fLastBounds->right - 2, fLastBounds->top, bounds.right, bounds.bottom); fLastBounds->Set(0, 0, newWidth, newHeight); - if (rect.IsValid() && Window() != NULL) - Invalidate(rect); + Invalidate(rect); BMenu::FrameResized(newWidth, newHeight); }