rotate bug

This commit is contained in:
Branislav Stojkovic
2025-03-17 14:45:45 +01:00
parent 6ef712b3e5
commit 521301d7ef
2 changed files with 6 additions and 2 deletions
@@ -1569,8 +1569,8 @@ public class Presenter implements IPlugInPort, IConfigListener {
double centerY = (maxY + minY) / 2;
if (snapToGrid) {
CalcUtils.roundToGrid(centerX, this.currentProject.getGridSpacing());
CalcUtils.roundToGrid(centerY, this.currentProject.getGridSpacing());
centerX = CalcUtils.roundToGrid(centerX, this.currentProject.getGridSpacing());
centerY = CalcUtils.roundToGrid(centerY, this.currentProject.getGridSpacing());
}
return new Point2D.Double(centerX, centerY);
@@ -269,6 +269,10 @@
<changeType>BUG_FIX</changeType>
<description>Moving selected components with a mouse doesn't register file modification action and doesn't enable Undo action</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Rotating selected components sometimes wacks the alignment off the grid</description>
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version>