mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
Fixed 'cell = cell' problems in cell-saving functions.
Fixed gnc_template_register_model_add_save_handlers to leave the split-register's NUM_CELL and DESC_CELL save handlers [as they are Correct and Relevant]. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6192 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
155054962b
commit
01875af932
@ -183,7 +183,7 @@ gnc_split_register_save_recn_cell (BasicCell * bcell,
|
||||
{
|
||||
SRSaveData *sd = save_data;
|
||||
SplitRegister *reg = user_data;
|
||||
RecnCell *cell = (RecnCell *) cell;
|
||||
RecnCell *cell = (RecnCell *) bcell;
|
||||
|
||||
g_return_if_fail (gnc_basic_cell_has_name (bcell, RECN_CELL));
|
||||
|
||||
@ -308,7 +308,7 @@ gnc_split_register_save_shares_cell (BasicCell * bcell,
|
||||
{
|
||||
SRSaveData *sd = save_data;
|
||||
SplitRegister *reg = user_data;
|
||||
PriceCell *cell = (PriceCell *) cell;
|
||||
PriceCell *cell = (PriceCell *) bcell;
|
||||
gnc_numeric amount;
|
||||
|
||||
g_return_if_fail (gnc_basic_cell_has_name (bcell, SHRS_CELL));
|
||||
@ -329,7 +329,7 @@ gnc_split_register_save_price_cell (BasicCell * bcell,
|
||||
{
|
||||
SRSaveData *sd = save_data;
|
||||
SplitRegister *reg = user_data;
|
||||
PriceCell *cell = (PriceCell *) cell;
|
||||
PriceCell *cell = (PriceCell *) bcell;
|
||||
gnc_numeric price;
|
||||
|
||||
g_return_if_fail (gnc_basic_cell_has_name (bcell, PRIC_CELL));
|
||||
@ -622,14 +622,6 @@ gnc_template_register_model_add_save_handlers (TableModel *model)
|
||||
gnc_template_register_save_unexpected_cell,
|
||||
DDUE_CELL);
|
||||
|
||||
gnc_table_model_set_save_handler (model,
|
||||
gnc_template_register_save_unexpected_cell,
|
||||
NUM_CELL);
|
||||
|
||||
gnc_table_model_set_save_handler (model,
|
||||
gnc_template_register_save_unexpected_cell,
|
||||
DESC_CELL);
|
||||
|
||||
gnc_table_model_set_save_handler (model,
|
||||
gnc_template_register_save_xfrm_cell,
|
||||
XFRM_CELL);
|
||||
|
Loading…
Reference in New Issue
Block a user