mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-27 19:30:27 -06:00
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:
parent
d436df2ebe
commit
c56d88f30e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user