~f-riccardo87/ubuntu-calculator-app/new-design

« back to all changes in this revision

Viewing changes to calculator.qml

  • Committer: Riccardo Ferrazzo
  • Date: 2013-02-28 12:43:44 UTC
  • Revision ID: f.riccardo87@gmail.com-20130228124344-2c2km79i5ewpdc8p
formila not added to plot if empty

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
                        property color color: "#FFFFFF";
151
151
 
152
152
                        function addCurrentToMemory() {
 
153
                            if(formula_text === '') return;
153
154
                            memory.get(memory.count-1).isLastItem = false
154
155
                            memory.get(memory.count-1).formula_data = JSON.stringify(formula)
155
156
                            memory.append({'formula': memory.get(memory.count-1).formula, 'answer': memory.get(count-1).answer, 'formula_data': '', 'isLastItem': true})