diff --git a/xpfe/appshell/src/nsWebShellWindow.cpp b/xpfe/appshell/src/nsWebShellWindow.cpp index f9878753346..ff9c01b198e 100644 --- a/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/xpfe/appshell/src/nsWebShellWindow.cpp @@ -791,7 +791,7 @@ void nsWebShellWindow::ConstrainToOpenerScreen(PRInt32* aX, PRInt32* aY) getter_AddRefs(screen)); if (screen) { screen->GetAvailRect(&left, &top, &width, &height); - if (*aX < left || *aY > left + width) { + if (*aX < left || *aX > left + width) { *aX = left; } if (*aY < top || *aY > top + height) {