As suggested by Jérôme remove one level of indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -794,7 +794,8 @@ SATWindow::_RestoreOriginalSize(bool stayBelowMouse)
|
|||||||
int32 buttons;
|
int32 buttons;
|
||||||
fDesktop->GetLastMouseState(&mousePosition, &buttons);
|
fDesktop->GetLastMouseState(&mousePosition, &buttons);
|
||||||
SATDecorator* decorator = GetDecorator();
|
SATDecorator* decorator = GetDecorator();
|
||||||
if (decorator) {
|
if (decorator == NULL)
|
||||||
|
return;
|
||||||
BRect tabRect = decorator->TabRect();
|
BRect tabRect = decorator->TabRect();
|
||||||
if (mousePosition.y < tabRect.bottom
|
if (mousePosition.y < tabRect.bottom
|
||||||
&& mousePosition.x <= frame.right + decorator->BorderWidth() +1
|
&& mousePosition.x <= frame.right + decorator->BorderWidth() +1
|
||||||
@@ -823,8 +824,6 @@ SATWindow::_RestoreOriginalSize(bool stayBelowMouse)
|
|||||||
if (mousePosition.y > frame.bottom)
|
if (mousePosition.y > frame.bottom)
|
||||||
deltaY -= mousePosition.y - frame.bottom;
|
deltaY -= mousePosition.y - frame.bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
fDesktop->MoveWindowBy(fWindow, deltaX, deltaY);
|
fDesktop->MoveWindowBy(fWindow, deltaX, deltaY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user