mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
last fix to traversal, I hope
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@261 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2618bc0536
commit
6e343e5c9c
@ -2942,9 +2942,6 @@ regCB( Widget mw, XtPointer cd, XtPointer cb )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hack alert -- ledger traversal is broken
|
|
||||||
* Note: the traversal code is fairly broken for ledger windows.
|
|
||||||
* Sad, but true, fixing it is a major pain in the neck. */
|
|
||||||
if( tcbs->qparam == QRight )
|
if( tcbs->qparam == QRight )
|
||||||
{
|
{
|
||||||
/* Don't need to check IN_DATE_CELL or IN_NUM_CELL because
|
/* Don't need to check IN_DATE_CELL or IN_NUM_CELL because
|
||||||
@ -3011,10 +3008,15 @@ regCB( Widget mw, XtPointer cd, XtPointer cb )
|
|||||||
/* hmm .. for stocks & mutual funds, the next field is price.
|
/* hmm .. for stocks & mutual funds, the next field is price.
|
||||||
* ordinary accounts don't have a price so hop to action. */
|
* ordinary accounts don't have a price so hop to action. */
|
||||||
if ((STOCK == regData->type) ||
|
if ((STOCK == regData->type) ||
|
||||||
(MUTUAL == regData->type) ||
|
(MUTUAL == regData->type)) {
|
||||||
(PORTFOLIO == regData->type)) {
|
|
||||||
tcbs->next_column = PRCC_CELL_C;
|
tcbs->next_column = PRCC_CELL_C;
|
||||||
tcbs->next_row = row - PAY_CELL_R + PRCC_CELL_R;
|
tcbs->next_row = row - PAY_CELL_R + PRCC_CELL_R;
|
||||||
|
} else
|
||||||
|
|
||||||
|
/* for portfolios, if a sale price is specified, hop to sale-price cell */
|
||||||
|
if (PORTFOLIO == regData->type) {
|
||||||
|
tcbs->next_column = PRCD_CELL_C;
|
||||||
|
tcbs->next_row = row - PAY_CELL_R + PRCD_CELL_R;
|
||||||
} else {
|
} else {
|
||||||
tcbs->next_column = ACTN_CELL_C;
|
tcbs->next_column = ACTN_CELL_C;
|
||||||
tcbs->next_row = row - PAY_CELL_R + ACTN_CELL_R;
|
tcbs->next_row = row - PAY_CELL_R + ACTN_CELL_R;
|
||||||
|
Loading…
Reference in New Issue
Block a user