Version 0.1 !

Correct a minor bug
This commit is contained in:
Grégory Soutadé 2010-11-14 14:22:18 +01:00
parent be267935ce
commit 3618a66f03
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include <wx/display.h> #include <wx/display.h>
#define APP_VERSION "v0.1 beta" #define APP_VERSION "v0.1"
class wxUI; class wxUI;
class Database; class Database;

View File

@ -654,7 +654,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
if (value.Length()) if (value.Length())
{ {
value.ToDouble(&new_op.amount); value.ToDouble(&new_op.amount);
new_op.amount *= -1.0; if (new_op.amount != 0.0) new_op.amount *= -1.0;
op_complete--; op_complete--;
wxGridCellFormulaEditor* pEditor = (wxGridCellFormulaEditor*) GetCellEditor(row, DEBIT); wxGridCellFormulaEditor* pEditor = (wxGridCellFormulaEditor*) GetCellEditor(row, DEBIT);
new_op.formula = pEditor->GetFormula(); new_op.formula = pEditor->GetFormula();