Simple fix for the omitted multiplication sign before a left parenthesis (#1661)
* simple fix for the omitted multiplication sign * accepts unary-op-code
This commit is contained in:
@@ -519,6 +519,12 @@ void CCalcEngine::ProcessCommandWorker(OpCode wParam)
|
||||
|
||||
if (wParam == IDC_OPENP)
|
||||
{
|
||||
// if there's an omitted multiplication sign
|
||||
if (IsDigitOpCode(m_nLastCom) || IsUnaryOpCode(m_nLastCom) || m_nLastCom == IDC_PNT || m_nLastCom == IDC_CLOSEP)
|
||||
{
|
||||
ProcessCommand(IDC_MUL);
|
||||
}
|
||||
|
||||
CheckAndAddLastBinOpToHistory();
|
||||
m_HistoryCollector.AddOpenBraceToHistory();
|
||||
|
||||
|
Reference in New Issue
Block a user