Calculator process percent wrong

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3121085
This commit is contained in:
rockt987 2011-03-26 00:16:38 -05:00
parent 856357f4f5
commit f78d75b771
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ public final class Calculator extends CDialog
case '/': case '*': case '/': case '*':
case '-': case '+': case '-': case '+':
case '%': case '%':
if (m_display.length() > 1) if (m_display.length() > 0)
{ {
char last = m_display.charAt(m_display.length()-1); char last = m_display.charAt(m_display.length()-1);
if (OPERANDS.indexOf(last) == -1) if (OPERANDS.indexOf(last) == -1)