diff --git a/src/controller/KissCount.h b/src/controller/KissCount.h index b097985..b37bb2a 100644 --- a/src/controller/KissCount.h +++ b/src/controller/KissCount.h @@ -29,7 +29,7 @@ #include -#define APP_VERSION "v0.1 beta" +#define APP_VERSION "v0.1" class wxUI; class Database; diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index 14e623c..7506bb6 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -654,7 +654,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event) if (value.Length()) { value.ToDouble(&new_op.amount); - new_op.amount *= -1.0; + if (new_op.amount != 0.0) new_op.amount *= -1.0; op_complete--; wxGridCellFormulaEditor* pEditor = (wxGridCellFormulaEditor*) GetCellEditor(row, DEBIT); new_op.formula = pEditor->GetFormula();