r23758 - gnucash/trunk/src/register/ledger-core - Ensure that cell is pointed to the right cell when retrieving the price

John Ralls jralls at code.gnucash.org
Fri Jan 24 18:04:10 EST 2014


Author: jralls
Date: 2014-01-24 18:04:09 -0500 (Fri, 24 Jan 2014)
New Revision: 23758
Trac: http://svn.gnucash.org/trac/changeset/23758

Modified:
   gnucash/trunk/src/register/ledger-core/split-register.c
Log:
Ensure that cell is pointed to the right cell when retrieving the price

Modified: gnucash/trunk/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register.c	2014-01-24 21:08:30 UTC (rev 23757)
+++ gnucash/trunk/src/register/ledger-core/split-register.c	2014-01-24 23:04:09 UTC (rev 23758)
@@ -2244,6 +2244,8 @@
 
     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);
     }



More information about the gnucash-changes mailing list