diff --git a/src/preferences/fonts/MainWindow.cpp b/src/preferences/fonts/MainWindow.cpp index 03191a3955..c9b52ed041 100644 --- a/src/preferences/fonts/MainWindow.cpp +++ b/src/preferences/fonts/MainWindow.cpp @@ -91,10 +91,7 @@ MainWindow::MainWindow() // make sure window is on screen BScreen screen(this); - if (Frame().left > screen.Frame().right - 10 - || Frame().top > screen.Frame().bottom - 10 - || Frame().right < screen.Frame().left + 10 - || Frame().bottom < screen.Frame().top + 10) + if (!screen.Frame().InsetByCopy(10, 10).Intersects(Frame())) _Center(); }