From 3618a66f03e0ebcad87870068ce0fd6864920405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 14 Nov 2010 14:22:18 +0100 Subject: [PATCH] Version 0.1 ! Correct a minor bug --- src/controller/KissCount.h | 2 +- src/view/grid/GridAccount.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();