Skip to content

Commit

Permalink
Release 1.5.6 (RPTools#777)
Browse files Browse the repository at this point in the history
* Emergency fix for NPE on Mac OS (RPTools#765)

* Update Change Log for 1.5.6

Added notes for 1.5.6 release.
  • Loading branch information
JamzTheMan authored Oct 8, 2019
1 parent be34143 commit f020ee4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
Maptool 1.5.6
=====
Emergency fix for MacOS. Otherwise the same as 1.5.5.

Bug Fixes
-----
* [#763][i763] Fixed null-pointer exception thrown on launch for MacOS.

[i763]: https://github.com/RPTools/maptool/issues/763

Maptool 1.5.5
=====
Several contributors have brought us new features including a scroll bar added to the Select Map drop-down, audio macro functions, performance and UI improvements, and, of course, bug fixes.
Expand Down
13 changes: 4 additions & 9 deletions src/main/java/net/rptools/maptool/client/tool/DefaultTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@
*/
package net.rptools.maptool.client.tool;

import java.awt.Toolkit;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.awt.dnd.DragSource;
import java.awt.event.*;
import java.awt.geom.AffineTransform;
import java.util.Set;
import javax.swing.SwingUtilities;
import javax.swing.*;
import net.rptools.lib.swing.SwingUtil;
import net.rptools.maptool.client.AppState;
import net.rptools.maptool.client.AppUtil;
Expand All @@ -44,8 +40,7 @@ public abstract class DefaultTool extends Tool
private boolean isDraggingMap;
private int dragStartX;
private int dragStartY;
private int dragThreshold =
(int) Toolkit.getDefaultToolkit().getDesktopProperty("DnD.gestureMotionThreshold");
private int dragThreshold = DragSource.getDragThreshold();

protected int mouseX;
protected int mouseY;
Expand Down

0 comments on commit f020ee4

Please sign in to comment.