mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
enable correct editing
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1018 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
93a39bd967
commit
a2533d8c9e
@ -178,7 +178,8 @@ xaccLedgerDisplaySimple (Account *acc)
|
||||
break;
|
||||
}
|
||||
|
||||
reg_type |= REG_SHOW_SDETAIL;
|
||||
/* default to single-line display */
|
||||
reg_type |= REG_SHOW_TDETAIL;
|
||||
|
||||
retval = xaccLedgerDisplayGeneral (acc, NULL, reg_type);
|
||||
return retval;
|
||||
@ -250,7 +251,8 @@ xaccLedgerDisplayAccGroup (Account *acc)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ledger_type |= REG_SHOW_SDETAIL;
|
||||
/* default to single-line display */
|
||||
ledger_type |= REG_SHOW_TDETAIL;
|
||||
|
||||
retval = xaccLedgerDisplayGeneral (acc, list, ledger_type);
|
||||
|
||||
|
@ -513,14 +513,24 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
}
|
||||
}
|
||||
|
||||
/* hack alert -- this extra stuff is all wrong !?!?! */
|
||||
if (double_line) {
|
||||
/* add two rows */
|
||||
if (!(reg->user_hook)) {
|
||||
i++;
|
||||
num_virt_rows ++;
|
||||
num_phys_rows += reg->trans_cursor->numRows;
|
||||
num_virt_rows ++;
|
||||
num_phys_rows += reg->split_cursor->numRows;
|
||||
}
|
||||
}
|
||||
|
||||
if (!multi_line && !double_line) {
|
||||
if (!(reg->user_hook)) {
|
||||
i++;
|
||||
num_virt_rows += 1;
|
||||
num_phys_rows += reg->trans_cursor->numRows;
|
||||
}
|
||||
}
|
||||
|
||||
/* num_virt_cols is always one. */
|
||||
xaccSetTableSize (table, num_phys_rows, num_phys_cols, num_virt_rows, 1);
|
||||
@ -581,7 +591,6 @@ printf ("load split %d at phys row %d \n", j, phys_row);
|
||||
split = slist[i];
|
||||
}
|
||||
|
||||
#ifdef LATER
|
||||
/* add the "blank split" at the end. We use either the blank
|
||||
* split we've cached away previously in "user_hook", or we create
|
||||
* a new one, as needed. */
|
||||
@ -607,7 +616,7 @@ printf ("load split %d at phys row %d \n", j, phys_row);
|
||||
phys_row += reg->trans_cursor->numRows;
|
||||
|
||||
/* do the split row of the blank split */
|
||||
{
|
||||
if (double_line || multi_line) {
|
||||
Transaction *trans;
|
||||
trans = xaccSplitGetParent (split);
|
||||
split = xaccTransGetSplit (trans, 1);
|
||||
@ -617,7 +626,6 @@ printf ("load split %d at phys row %d \n", j, phys_row);
|
||||
vrow ++;
|
||||
phys_row += reg->split_cursor->numRows;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* restore the cursor to its original location */
|
||||
if (phys_row <= save_cursor_phys_row) {
|
||||
|
Loading…
Reference in New Issue
Block a user