diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 3cee495795..4c12f682f0 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -2035,16 +2035,16 @@ BWindow::Frame() const BRect BWindow::DecoratorFrame() const { - BRect decortatorFrame(Frame()); + BRect decoratorFrame(Frame()); float borderWidth; float tabHeight; _GetDecoratorSize(&borderWidth, &tabHeight); // TODO: Broken for tab on left window side windows... - decortatorFrame.top -= tabHeight; - decortatorFrame.left -= borderWidth; - decortatorFrame.right += borderWidth; - decortatorFrame.bottom += borderWidth; - return decortatorFrame; + decoratorFrame.top -= tabHeight; + decoratorFrame.left -= borderWidth; + decoratorFrame.right += borderWidth; + decoratorFrame.bottom += borderWidth; + return decoratorFrame; }