mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Balance ENTER/LEAVE calls on some functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15829 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
b7cc4b2e1e
commit
392cd816a3
@ -173,7 +173,10 @@ xaccSplitScrub (Split *split)
|
||||
ENTER ("(split=%p)", split);
|
||||
|
||||
trans = xaccSplitGetParent (split);
|
||||
if (!trans) return;
|
||||
if (!trans) {
|
||||
LEAVE("no trans");
|
||||
return;
|
||||
}
|
||||
|
||||
account = xaccSplitGetAccount (split);
|
||||
|
||||
@ -193,6 +196,7 @@ xaccSplitScrub (Split *split)
|
||||
if (!account)
|
||||
{
|
||||
PINFO ("Free Floating Transaction!");
|
||||
LEAVE ("no account");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -232,6 +236,7 @@ xaccSplitScrub (Split *split)
|
||||
|
||||
if (gnc_numeric_same (amount, value, scu, GNC_HOW_RND_ROUND))
|
||||
{
|
||||
LEAVE("(split=%p) different values", split);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -990,8 +990,12 @@ void
|
||||
xaccTransCommitEdit (Transaction *trans)
|
||||
{
|
||||
if (!trans) return;
|
||||
ENTER ("(trans=%p)", trans);
|
||||
|
||||
if (!qof_commit_edit (QOF_INSTANCE(trans))) return;
|
||||
if (!qof_commit_edit (QOF_INSTANCE(trans))) {
|
||||
LEAVE("editlevel non-zero");
|
||||
return;
|
||||
}
|
||||
|
||||
/* We increment this for the duration of the call
|
||||
* so other functions don't result in a recursive
|
||||
|
@ -321,11 +321,13 @@ gnc_lot_add_split (GNCLot *lot, Split *split)
|
||||
"\tlot account=\'%s\', split account=\'%s\'\n",
|
||||
xaccAccountGetName(lot->account), xaccAccountGetName (acc));
|
||||
gnc_lot_commit_edit(lot);
|
||||
LEAVE("different accounts");
|
||||
return;
|
||||
}
|
||||
|
||||
if (lot == split->lot) {
|
||||
gnc_lot_commit_edit(lot);
|
||||
LEAVE("already in lot");
|
||||
return; /* handle not-uncommon no-op */
|
||||
}
|
||||
if (split->lot)
|
||||
@ -341,6 +343,7 @@ gnc_lot_add_split (GNCLot *lot, Split *split)
|
||||
gnc_lot_commit_edit(lot);
|
||||
|
||||
qof_event_gen (&lot->inst.entity, QOF_EVENT_MODIFY, NULL);
|
||||
LEAVE("added to lot");
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user