From f57449c8d40e42efade9a3fe99ea861885b27c98 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Tue, 11 Sep 2018 19:36:02 +0200 Subject: [PATCH] Changed version to v0.9 and fixed the button SURD_MODE --- .../it/cavallium/warppi/gui/screens/MathInputScreen.java | 8 +++++--- pom.xml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/it/cavallium/warppi/gui/screens/MathInputScreen.java b/core/src/main/java/it/cavallium/warppi/gui/screens/MathInputScreen.java index 41c9d86f..96195e0d 100644 --- a/core/src/main/java/it/cavallium/warppi/gui/screens/MathInputScreen.java +++ b/core/src/main/java/it/cavallium/warppi/gui/screens/MathInputScreen.java @@ -393,9 +393,11 @@ public class MathInputScreen extends Screen { return true; case SURD_MODE: calc.exactMode = !calc.exactMode; - result.clear(); - currentStep = 0; - Keyboard.keyPressed(Key.SIMPLIFY); + if (!result.isContentEmpty()) { + result.clear(); + currentStep = 0; + Keyboard.keyPressed(Key.SIMPLIFY); + } return true; case debug1: Engine.INSTANCE.getHardwareDevice().getDisplayManager().setScreen(new EmptyScreen()); diff --git a/pom.xml b/pom.xml index 19f05189..51b68d84 100755 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ - 0.8-SNAPSHOT + 0.9-SNAPSHOT UTF-8 1.8 1.8