From 640284808bdb87a68fa5455784bafb38961101f7 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Fri, 17 Mar 2017 20:48:58 +0300 Subject: [PATCH] IDEA-164056 Incorrect welcome frame center coordinates calculation --- .../openapi/wm/impl/welcomeScreen/FlatWelcomeFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/FlatWelcomeFrame.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/FlatWelcomeFrame.java index 1633e36b55d2..44a306bf8260 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/FlatWelcomeFrame.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/FlatWelcomeFrame.java @@ -162,7 +162,7 @@ public class FlatWelcomeFrame extends JFrame implements IdeFrame, Disposable, Ac } private static void saveLocation(Rectangle location) { - Point middle = new Point(location.x + location.width / 2, location.y = location.height / 2); + Point middle = new Point(location.x + location.width / 2, location.y + location.height / 2); DimensionService.getInstance().setLocation(WelcomeFrame.DIMENSION_KEY, middle, null); }