mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-164056 Incorrect welcome frame center coordinates calculation
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user