Long minus check was forgotten

This commit is contained in:
serso
2015-02-23 10:24:12 +01:00
parent 25adac1dcd
commit 75a8231afc
2 changed files with 13 additions and 8 deletions

View File

@@ -79,7 +79,8 @@ public abstract class AbstractNumberBuilder {
private boolean isSignAfterE(@Nonnull MathType.Result mathTypeResult) {
if (!isHexMode()) {
if ("-".equals(mathTypeResult.getMatch()) || "+".equals(mathTypeResult.getMatch())) {
final String match = mathTypeResult.getMatch();
if ("".equals(match) || "-".equals(match) || "+".equals(match)) {
final StringBuilder localNb = numberBuilder;
if (localNb != null && localNb.length() > 0) {
if (localNb.charAt(localNb.length() - 1) == MathType.POWER_10) {