git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6378 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-12-15 09:49:49 +00:00
parent a5640c4109
commit a54f80d6da

View File

@ -81,6 +81,9 @@ gnc_price_cell_direct_update (BasicCell *bcell,
if (parse_ok)
changed = gnc_price_cell_set_value (cell, amount);
else if (!cell->cell.value || cell->cell.value[0] == '\0')
changed = gnc_price_cell_set_value (cell,
gnc_numeric_zero ());
else
*cursor_position = error_loc - cell->cell.value;