Skip to content

Commit

Permalink
Set center position when importing from Eagle PnP files (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Mar 16, 2023
1 parent b8f32ed commit 6ac22a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This file is part of Universal Gcode Sender (UGS).
*/
package com.willwinder.ugs.nbp.designer.io.eagle;

import com.willwinder.ugs.nbp.designer.entities.Anchor;
import com.willwinder.ugs.nbp.designer.entities.Entity;
import com.willwinder.ugs.nbp.designer.entities.cuttable.Point;
import com.willwinder.ugs.nbp.designer.io.DesignReader;
Expand Down Expand Up @@ -78,7 +79,7 @@ private Point parsePoint(String line) {

Point point = new Point();
point.setName(name);
point.setPosition(new Point2D.Double(parseDouble(columns[1]), parseDouble(columns[2])));
point.setPosition(Anchor.CENTER, new Point2D.Double(parseDouble(columns[1]), parseDouble(columns[2])));
point.setRotation(parseDouble(columns[3]));
return point;
}
Expand Down

0 comments on commit 6ac22a0

Please sign in to comment.