> If I start with a fresh install of the CVS version of gnucash with no
> data, and I do the following, it segfaults. This is really, really
> bad. How am I going to convince my wife to run this program when it
> crashes so easily??
>
> New Account
> For a name, say "checking".
> Leave as a bank-type account.
> Create
> Deposit $100 into it
> Record
> New Account
> For a name, say "groceries".
> Set to be an expense account
> Create
> In the main window, Account/Transfer
> Put $10 into the amount
> Set the To to "groceries"
> Transfer.
> Boom!
>
> --
> -russ nelson <[EMAIL PROTECTED]> http://russnelson.com
> Crynwr sells support for free software | PGPok | Government schools are so
> 521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
> Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | can outdo them. Homeschool!
>
> --
> Gnucash Developer's List
> To unsubscribe send empty email to: [EMAIL PROTECTED]
Try this.
-- aside --- Linas, am I handling this correctly?
Oh, and give your wife my regards.
dave
Index: XferWindow.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/motif/XferWindow.c,v
retrieving revision 1.23
diff -u -r1.23 XferWindow.c
--- XferWindow.c 1999/10/18 03:12:45 1.23
+++ XferWindow.c 1999/10/21 17:34:06
@@ -476,7 +476,7 @@
/* TransSetMemo will set the memo for both splits */
xaccTransSetMemo (trans, XmTextGetString(xferData->memo));
- dest_split = xaccTransGetSplit (trans, 1);
+ dest_split = xaccTransGetSplit (trans, 0);
str = XmTextGetString(xferData->amount);
sscanf( str, "%f", &val ); /* sscanf must take float not double arg */
xaccSplitSetShareAmount (dest_split, -val);
@@ -490,11 +490,14 @@
recnRefresh(acc);
acc = xaccGroupGetAccount(grp, xferData->to);
- src_split = xaccTransGetSplit (trans, 0);
+ src_split = xaccMallocSplit ();
+ xaccSplitSetShareAmount (src_split, val);
+ xaccTransAppendSplit (trans, src_split);
+
xaccAccountBeginEdit (acc, 0);
xaccAccountInsertSplit (acc, src_split);
- xaccTransCommitEdit (trans);
xaccAccountCommitEdit (acc);
+ xaccTransCommitEdit (trans);
xaccAccountDisplayRefresh (acc);
recnRefresh(acc);
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]