Ensure that cell is pointed to the right cell when retrieving the price

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23758 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2014-01-24 23:04:09 +00:00
parent 5831e17771
commit d8bb1ff2dd

View File

@ -2244,6 +2244,8 @@ gnc_split_register_auto_calc (SplitRegister *reg, Split *split)
if (price_changed)
{
cell = (PriceCell *) gnc_table_layout_get_cell (reg->table->layout,
PRIC_CELL);
price = gnc_price_cell_get_value (cell);
record_price (reg, account, price);
}