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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
reg_type |= REG_SHOW_SDETAIL;
|
/* default to single-line display */
|
||||||
|
reg_type |= REG_SHOW_TDETAIL;
|
||||||
|
|
||||||
retval = xaccLedgerDisplayGeneral (acc, NULL, reg_type);
|
retval = xaccLedgerDisplayGeneral (acc, NULL, reg_type);
|
||||||
return retval;
|
return retval;
|
||||||
@ -250,7 +251,8 @@ xaccLedgerDisplayAccGroup (Account *acc)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ledger_type |= REG_SHOW_SDETAIL;
|
/* default to single-line display */
|
||||||
|
ledger_type |= REG_SHOW_TDETAIL;
|
||||||
|
|
||||||
retval = xaccLedgerDisplayGeneral (acc, list, ledger_type);
|
retval = xaccLedgerDisplayGeneral (acc, list, ledger_type);
|
||||||
|
|
||||||
|
@ -513,13 +513,23 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hack alert -- this extra stuff is all wrong !?!?! */
|
|
||||||
if (double_line) {
|
if (double_line) {
|
||||||
/* add two rows */
|
/* add two rows */
|
||||||
num_virt_rows ++;
|
if (!(reg->user_hook)) {
|
||||||
num_phys_rows += reg->trans_cursor->numRows;
|
i++;
|
||||||
num_virt_rows ++;
|
num_virt_rows ++;
|
||||||
num_phys_rows += reg->split_cursor->numRows;
|
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. */
|
/* num_virt_cols is always one. */
|
||||||
@ -581,7 +591,6 @@ printf ("load split %d at phys row %d \n", j, phys_row);
|
|||||||
split = slist[i];
|
split = slist[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LATER
|
|
||||||
/* add the "blank split" at the end. We use either the blank
|
/* add the "blank split" at the end. We use either the blank
|
||||||
* split we've cached away previously in "user_hook", or we create
|
* split we've cached away previously in "user_hook", or we create
|
||||||
* a new one, as needed. */
|
* a new one, as needed. */
|
||||||
@ -607,17 +616,16 @@ printf ("load split %d at phys row %d \n", j, phys_row);
|
|||||||
phys_row += reg->trans_cursor->numRows;
|
phys_row += reg->trans_cursor->numRows;
|
||||||
|
|
||||||
/* do the split row of the blank split */
|
/* do the split row of the blank split */
|
||||||
{
|
if (double_line || multi_line) {
|
||||||
Transaction *trans;
|
Transaction *trans;
|
||||||
trans = xaccSplitGetParent (split);
|
trans = xaccSplitGetParent (split);
|
||||||
split = xaccTransGetSplit (trans, 1);
|
split = xaccTransGetSplit (trans, 1);
|
||||||
xaccSetCursor (table, reg->split_cursor, phys_row, 0, vrow, 0);
|
xaccSetCursor (table, reg->split_cursor, phys_row, 0, vrow, 0);
|
||||||
xaccMoveCursor (table, phys_row, 0);
|
xaccMoveCursor (table, phys_row, 0);
|
||||||
xaccSRLoadRegEntry (reg, split);
|
xaccSRLoadRegEntry (reg, split);
|
||||||
vrow ++;
|
vrow ++;
|
||||||
phys_row += reg->split_cursor->numRows;
|
phys_row += reg->split_cursor->numRows;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* restore the cursor to its original location */
|
/* restore the cursor to its original location */
|
||||||
if (phys_row <= save_cursor_phys_row) {
|
if (phys_row <= save_cursor_phys_row) {
|
||||||
|
Loading…
Reference in New Issue
Block a user