Skip to content

Commit

Permalink
Merge pull request #3354 from Phergus/protobufMigrationFixes3254
Browse files Browse the repository at this point in the history
Misc fixes for protobuf migration
  • Loading branch information
Phergus authored Jan 26, 2022
2 parents c7059bd + 343f300 commit cea4ee0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/client/AppActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -2666,7 +2666,7 @@ protected void done() {
if (t.getCause() instanceof AppState.FailedToAcquireLockException) {
MapTool.showError("msg.error.failedLoadCampaignLock");
} else {
MapTool.showError("msg.error.failedLoadCampaign", t.getCause());
MapTool.showError("msg.error.failedLoadCampaign", t);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/client/MapTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public static void showError(String msgKey) {
*/
public static void showError(String msgKey, Throwable t) {
String msg = generateMessage(msgKey, t);
log.error(msgKey, t);
log.error(I18N.getString(msgKey), t);
showMessage(msg, "msg.title.messageDialogError", JOptionPane.ERROR_MESSAGE);
}

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/net/rptools/maptool/model/Zone.java
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,10 @@ protected Object readResolve() {
if (topologyTerrain == null) {
topologyTerrain = new Area();
}

if (aStarRounding == null) {
aStarRounding = AStarRoundingOptions.NONE;
}
return this;
}

Expand Down

0 comments on commit cea4ee0

Please sign in to comment.