From f181b75b4adf56f9c7fdf6f5d0d8f1aa6913bbd6 Mon Sep 17 00:00:00 2001 From: serso Date: Fri, 16 Sep 2011 14:44:24 +0400 Subject: [PATCH] fix for multiplication sign before open group symbol --- src/main/java/org/solovyev/android/calculator/Preprocessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/solovyev/android/calculator/Preprocessor.java b/src/main/java/org/solovyev/android/calculator/Preprocessor.java index 5769b9b7..60f57dee 100644 --- a/src/main/java/org/solovyev/android/calculator/Preprocessor.java +++ b/src/main/java/org/solovyev/android/calculator/Preprocessor.java @@ -59,7 +59,7 @@ public class Preprocessor { mathTypeBefore != MathEntityType.unary_operation && !MathEntityType.openGroupSymbols.contains(chBefore)) { - if (mathType == MathEntityType.constant) { + if (mathType == MathEntityType.constant || MathEntityType.openGroupSymbols.contains(ch)) { sb.append("*"); } else if (mathType == MathEntityType.digit && mathTypeBefore != MathEntityType.digit && mathTypeBefore != MathEntityType.dot) { sb.append("*");