harmless change, I think.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@271 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1997-12-04 11:18:27 +00:00
parent d436df2ebe
commit c56d88f30e

View File

@ -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