Skip to content

Commit

Permalink
fix: wrong rounding mode in generate relative origin coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
Chryfi committed Jun 15, 2024
1 parent 29f57dd commit 5babf67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ private void resetTransformations()

private void setRelativeOriginCoordinates() {
DecimalFormat df = new DecimalFormat("#.##");
df.setRoundingMode(RoundingMode.CEILING);
df.setRoundingMode(RoundingMode.HALF_UP);

this.originX.setValue(Double.parseDouble(df.format(GuiMinemaPanel.this.editor.position.point.x)));
this.originY.setValue(Double.parseDouble(df.format(GuiMinemaPanel.this.editor.position.point.y)));
Expand Down

0 comments on commit 5babf67

Please sign in to comment.