From c56d88f30e59697dec0687f2e8d6652d767055b6 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Thu, 4 Dec 1997 11:18:27 +0000 Subject: [PATCH] harmless change, I think. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@271 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/RegWindow.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/RegWindow.c b/src/RegWindow.c index 9b75925f9c..954125aea5 100644 --- a/src/RegWindow.c +++ b/src/RegWindow.c @@ -1473,14 +1473,16 @@ regSaveTransaction( RegWindow *regData, int position ) break; } - { - char *pay, *dep; - xaccGetDisplayAmountStrings (regData, themount, trans, &pay, &dep); - XbaeMatrixSetCell( regData->reg, row+PAY_CELL_R, PAY_CELL_C, pay ); - XbaeMatrixSetCell( regData->reg, row+DEP_CELL_R, DEP_CELL_C, dep ); - XtFree (pay); - XtFree (dep); - } + /* not needed -- the regRefresh will redraw all -- + * { + * char *pay, *dep; + * xaccGetDisplayAmountStrings (regData, themount, trans, &pay, &dep); + * XbaeMatrixSetCell( regData->reg, row+PAY_CELL_R, PAY_CELL_C, pay ); + * XbaeMatrixSetCell( regData->reg, row+DEP_CELL_R, DEP_CELL_C, dep ); + * XtFree (pay); + * XtFree (dep); + * } + */ } /* ignore MOD_PRIC for non-stock accounts */ @@ -1499,8 +1501,10 @@ regSaveTransaction( RegWindow *regData, int position ) sscanf( price, "%f", &val ); trans->share_price = val; - sprintf( buf, "%.2f ", trans->share_price ); - XbaeMatrixSetCell( regData->reg, row+PRCC_CELL_R, PRCC_CELL_C, buf ); + /* not needed -- the regRefresh will redraw all -- + * sprintf( buf, "%.2f ", trans->share_price ); + * XbaeMatrixSetCell( regData->reg, row+PRCC_CELL_R, PRCC_CELL_C, buf ); + */ } /* If this is a new transaction, and the user did not