From d9230a3d1b084103c0cdc25d0e7676967bb62790 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 6 Dec 1998 20:41:23 +0000 Subject: [PATCH] big ops bug fix git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1437 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/SplitLedger.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/SplitLedger.c b/src/SplitLedger.c index a5afaa3139..cade0c6c56 100644 --- a/src/SplitLedger.c +++ b/src/SplitLedger.c @@ -394,7 +394,7 @@ xaccSRSaveRegEntry (SplitRegister *reg) DEBUG ("xaccSRSaveRegEntry(): updating trans addr=%p\n", trans); /* copy the contents from the cursor to the split */ - if (MOD_DATE & changed) + if (MOD_DATE & changed) { /* commit any pending changes */ xaccCommitDateCell (reg->dateCell); DEBUG ("xaccSRSaveRegEntry(): MOD_DATE DMY= %2d/%2d/%4d \n", @@ -405,19 +405,23 @@ xaccSRSaveRegEntry (SplitRegister *reg) xaccTransSetDate (trans, reg->dateCell->date.tm_mday, reg->dateCell->date.tm_mon+1, reg->dateCell->date.tm_year+1900); + } - if (MOD_NUM & changed) + if (MOD_NUM & changed) { xaccTransSetNum (trans, reg->numCell->value); + } - if (MOD_DESC & changed) + if (MOD_DESC & changed) { xaccTransSetDescription (trans, reg->descCell->cell.value); + } if (MOD_RECN & changed) { xaccSplitSetReconcile (split, reg->recnCell->value[0]); } - if (MOD_ACTN & changed) + if (MOD_ACTN & changed) { xaccSplitSetAction (split, reg->actionCell->cell.value); + } /* -------------------------------------------------------------- */ /* OK, the handling of transfers gets complicated because it @@ -483,8 +487,9 @@ xaccSRSaveRegEntry (SplitRegister *reg) /* hack alert -- implement this */ } - if (MOD_MEMO & changed) + if (MOD_MEMO & changed) { xaccSplitSetMemo (split, reg->memoCell->value); + } /* The AMNT and NAMNT updates only differ by sign. Basically, * the split and transaction cursors show minus the quants that