mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6378 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a5640c4109
commit
a54f80d6da
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user