From d0b537d6c9b235b9c506582d64e8009a9b938d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Fri, 25 Mar 2011 19:36:21 +0100 Subject: [PATCH] Fix a bug : Search for previous operation failed --- src/view/grid/GridAccount.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index f65c1ce..34c65b6 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -733,6 +733,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event) !GetCellValue(row, ACCOUNT).Length() || !_canAddOperation)) { + new_op.fix_cost = (row <= _fixCosts); if (_kiss->SearchPreviousOperation(&op_tmp, new_op, new_op.month, new_op.year, _canAddOperation)) { new_op.category = op_tmp.category;