IDEA-164056 Incorrect welcome frame center coordinates calculation

This commit is contained in:
Sergey Malenkov
2017-03-17 20:50:58 +03:00
parent 88bf0fd779
commit 640284808b
@@ -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);
}