Skip to content

Commit

Permalink
Merge pull request #3839 from kwvanderlinde/bugfix/3838-fix-hex-grid-…
Browse files Browse the repository at this point in the history
…cell-offset-in-protobuf

Fix Mapper.map(Dimension) to set the width as the X value rather than Y
  • Loading branch information
Phergus authored Feb 16, 2023
2 parents 0fdbeca + 6931e9b commit e5e1fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/server/Mapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public static ScriptTypeDto mapToScriptTypeDto(Object o) {
}

public static IntPointDto map(Dimension d) {
return IntPointDto.newBuilder().setY(d.width).setY(d.height).build();
return IntPointDto.newBuilder().setX(d.width).setY(d.height).build();
}

public static BasicStroke map(StrokeDto dto) {
Expand Down

0 comments on commit e5e1fde

Please sign in to comment.