mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
fix the issue with saving variant location
This commit is contained in:
@@ -2508,10 +2508,10 @@ public class Presenter implements IPlugInPort {
|
|||||||
Point2D p = new Point2D.Double(oldP.getX(), oldP.getY());
|
Point2D p = new Point2D.Double(oldP.getX(), oldP.getY());
|
||||||
points.add(p);
|
points.add(p);
|
||||||
}
|
}
|
||||||
double x = points.iterator().next().getX();
|
double x = points.get(0).getX();
|
||||||
double y = points.iterator().next().getY();
|
double y = points.get(0).getY();
|
||||||
for (Point2D point : points) {
|
for (Point2D point : points) {
|
||||||
point.setLocation(point.getX() + x, point.getY() + y);
|
point.setLocation(point.getX() - x, point.getY() - y);
|
||||||
}
|
}
|
||||||
|
|
||||||
Template template = new Template(variantName, values, points);
|
Template template = new Template(variantName, values, points);
|
||||||
|
|||||||
Reference in New Issue
Block a user