~rpadovani/ubuntu-calculator-app/localStorage20141220

« back to all changes in this revision

Viewing changes to app/ubuntu-calculator-app.qml

  • Committer: Bartosz Kosiorek
  • Date: 2014-12-08 18:53:33 UTC
  • Revision ID: gang65@poczta.onet.pl-20141208185333-oy4wa9178d3jhxge
Fix issue with decimal point unable to add to result

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
        longFormula = result;
235
235
        shortFormula = result;
236
236
        numberOfOpenedBrackets = 0;
237
 
        isAllowedToAddDot = false;
 
237
        if (result % 1 != 0) {
 
238
            isAllowedToAddDot = false;
 
239
        } else {
 
240
            isAllowedToAddDot = true;
 
241
        }
238
242
    }
239
243
 
240
244
    CalculationHistory {