don't set description field directly

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@379 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas
1998-01-06 07:24:14 +00:00
parent 91c11be711
commit dc30ef2388
2 changed files with 2 additions and 4 deletions

View File

@@ -677,8 +677,7 @@ createCB( Widget mw, XtPointer cd, XtPointer cb )
initTransaction(trans);
todaysDate( &(trans->date) );
XtFree (trans->description);
trans->description = XtNewString(OPEN_BALN_STR);
xaccTransSetDescription (trans, OPEN_BALN_STR);
/* add the new transaction to the account */
insertTransaction( acc, trans );

View File

@@ -305,8 +305,7 @@ adjBOkCB( Widget mw, XtPointer cd, XtPointer cb )
themount = val;
/* fill out the rest of the fields */
XtFree (trans->description);
trans->description = XtNewString(ADJ_BALN_STR);
xaccTransSetDescription (trans, ADJ_BALN_STR);
xaccTransSetReconcile (trans, NREC);
pos = insertTransaction( acc, trans );