This commit is contained in:
voulot_d
2017-07-11 15:08:37 +02:00
parent 2f0aa0712f
commit c74d5661f5
8 changed files with 286 additions and 13 deletions

View File

@@ -1765,7 +1765,7 @@ public class ScreenPanel extends Panel {
renderer.removeOverlays(calibrationOverlays);
calibrationOverlays = null;
calibrationDialolg = null;
if (calibrationMessage.getValue().equals(0)){ //If pressed OK
if ((calibrationMessage.getValue()!=null) && calibrationMessage.getValue().equals(0)){ //If pressed OK
int x1 = Math.min(left.getPosition().x, right.getPosition().x);
int x2 = Math.max(left.getPosition().x, right.getPosition().x);
int y1 = Math.min(top.getPosition().y, bottom.getPosition().y);