mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
another nasty bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@153 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
77c3fa8bdb
commit
c64738e5e1
@ -1113,15 +1113,6 @@ regSaveTransaction( RegWindow *regData, int position )
|
|||||||
if (acc) acc->parent->saved = False;
|
if (acc) acc->parent->saved = False;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( regData->changed & MOD_NUM )
|
|
||||||
{
|
|
||||||
DEBUG("MOD_NUM\n");
|
|
||||||
/* ...the transaction number (String)... */
|
|
||||||
XtFree( trans->num );
|
|
||||||
trans->num = XtNewString(
|
|
||||||
XbaeMatrixGetCell(regData->reg,row+NUM_CELL_R,NUM_CELL_C));
|
|
||||||
}
|
|
||||||
|
|
||||||
if( regData->changed & MOD_XFRM )
|
if( regData->changed & MOD_XFRM )
|
||||||
{
|
{
|
||||||
/* ... the transfer ... */
|
/* ... the transfer ... */
|
||||||
@ -1234,6 +1225,15 @@ regSaveTransaction( RegWindow *regData, int position )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( regData->changed & MOD_NUM )
|
||||||
|
{
|
||||||
|
DEBUG("MOD_NUM\n");
|
||||||
|
/* ...the transaction number (String)... */
|
||||||
|
XtFree( trans->num );
|
||||||
|
trans->num = XtNewString(
|
||||||
|
XbaeMatrixGetCell(regData->reg,row+NUM_CELL_R,NUM_CELL_C));
|
||||||
|
}
|
||||||
|
|
||||||
if( regData->changed & MOD_DESC )
|
if( regData->changed & MOD_DESC )
|
||||||
{
|
{
|
||||||
DEBUG("MOD_DESC\n");
|
DEBUG("MOD_DESC\n");
|
||||||
@ -1452,7 +1452,7 @@ regSaveTransaction( RegWindow *regData, int position )
|
|||||||
/* (strcmp("",trans->action) == 0) && annoying! */
|
/* (strcmp("",trans->action) == 0) && annoying! */
|
||||||
/* (0 == trans->catagory) && not implemented ! */
|
/* (0 == trans->catagory) && not implemented ! */
|
||||||
/* (NULL == trans->credit) && annoying! */
|
/* (NULL == trans->credit) && annoying! */
|
||||||
/* (NULL == trans->debit) && annoying! */
|
(NULL == trans->debit) && /* must check for this !*/
|
||||||
(1.0 == trans->share_price) &&
|
(1.0 == trans->share_price) &&
|
||||||
(0.0 == trans->damount) ) {
|
(0.0 == trans->damount) ) {
|
||||||
freeTransaction (trans);
|
freeTransaction (trans);
|
||||||
@ -1529,6 +1529,8 @@ regSaveTransaction( RegWindow *regData, int position )
|
|||||||
/* if this is a ledger window, then we have to update
|
/* if this is a ledger window, then we have to update
|
||||||
* it as well. If this is not a ledger window, one of
|
* it as well. If this is not a ledger window, one of
|
||||||
* the above two lines will have handled it already */
|
* the above two lines will have handled it already */
|
||||||
|
/* minor hack alert -- this is probably not needed, as
|
||||||
|
* above macros should handle it */
|
||||||
if (1 < regData->numAcc) {
|
if (1 < regData->numAcc) {
|
||||||
regRefresh (regData);
|
regRefresh (regData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user