mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
bug fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1025 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2f937b292c
commit
6c23ebfdb3
@ -349,6 +349,8 @@ xaccLedgerDisplayGeneral (Account *lead_acc, Account **acclist, int ledger_type)
|
|||||||
void
|
void
|
||||||
xaccLedgerDisplayRefresh (xaccLedgerDisplay *regData)
|
xaccLedgerDisplayRefresh (xaccLedgerDisplay *regData)
|
||||||
{
|
{
|
||||||
|
int typo;
|
||||||
|
|
||||||
/* If we don't really need the redraw, don't do it. */
|
/* If we don't really need the redraw, don't do it. */
|
||||||
if (!(regData->dirty)) return;
|
if (!(regData->dirty)) return;
|
||||||
regData->dirty = 0; /* mark clean */
|
regData->dirty = 0; /* mark clean */
|
||||||
@ -370,7 +372,7 @@ xaccLedgerDisplayRefresh (xaccLedgerDisplay *regData)
|
|||||||
/* provide some convenience data for the ture GUI window.
|
/* provide some convenience data for the ture GUI window.
|
||||||
* If the GUI wants to display yet other stuff, its on its own.
|
* If the GUI wants to display yet other stuff, its on its own.
|
||||||
*/
|
*/
|
||||||
// xaccAccountRecomputeBalance(regData->leader);
|
xaccAccountRecomputeBalance(regData->leader);
|
||||||
regData->balance = xaccAccountGetBalance (regData->leader);
|
regData->balance = xaccAccountGetBalance (regData->leader);
|
||||||
regData->clearedBalance = xaccAccountGetClearedBalance (regData->leader);
|
regData->clearedBalance = xaccAccountGetClearedBalance (regData->leader);
|
||||||
regData->reconciledBalance = xaccAccountGetReconciledBalance (regData->leader);
|
regData->reconciledBalance = xaccAccountGetReconciledBalance (regData->leader);
|
||||||
@ -380,10 +382,12 @@ xaccLedgerDisplayRefresh (xaccLedgerDisplay *regData)
|
|||||||
* system, income will show up as a credit to a
|
* system, income will show up as a credit to a
|
||||||
* bank account, and a debit to the income account.
|
* bank account, and a debit to the income account.
|
||||||
* Thus, positive and negative are interchanged */
|
* Thus, positive and negative are interchanged */
|
||||||
if ((INCOME_REGISTER == regData->type) ||
|
typo = regData->type & REG_TYPE_MASK;
|
||||||
(EXPENSE_REGISTER == regData->type)) {
|
if ((INCOME_REGISTER == typo) ||
|
||||||
|
(EXPENSE_REGISTER == typo)) {
|
||||||
regData->balance = - (regData->balance);
|
regData->balance = - (regData->balance);
|
||||||
regData->clearedBalance = - (regData->clearedBalance);
|
regData->clearedBalance = - (regData->clearedBalance);
|
||||||
|
regData->reconciledBalance = - (regData->reconciledBalance);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* OK, now tell this specific GUI window to redraw itself ... */
|
/* OK, now tell this specific GUI window to redraw itself ... */
|
||||||
|
@ -213,8 +213,7 @@ printf ("save split is %p \n", split);
|
|||||||
|
|
||||||
if (reg->type & REG_MULTI_LINE) {
|
if (reg->type & REG_MULTI_LINE) {
|
||||||
split_to_modify = split;
|
split_to_modify = split;
|
||||||
}
|
} else {
|
||||||
if (reg->type & REG_DOUBLE_LINE) {
|
|
||||||
split_to_modify = xaccGetOtherSplit(split);
|
split_to_modify = xaccGetOtherSplit(split);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user