[Gnucash-changes] r13310 - gnucash/trunk - When looking for an matching account name, start at the beginning of

David Hampton hampton at cvs.gnucash.org
Sun Feb 19 19:01:18 EST 2006


Author: hampton
Date: 2006-02-19 19:01:18 -0500 (Sun, 19 Feb 2006)
New Revision: 13310
Trac: http://svn.gnucash.org/trac/changeset/13310

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/register/register-gnome/combocell-gnome.c
Log:
When looking for an matching account name, start at the beginning of
the selected region, not the end.  Problem created when the code
stopped adding placeholder accounts to the quickfill.  Fixes 328893.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-02-19 23:41:53 UTC (rev 13309)
+++ gnucash/trunk/ChangeLog	2006-02-20 00:01:18 UTC (rev 13310)
@@ -1,3 +1,10 @@
+2006-02-19  David Hampton  <hampton at employees.org>
+
+	* src/register/register-gnome/combocell-gnome.c: When looking for
+	an matching account name, start at the beginning of the selected
+	region, not the end.  Problem created when the code stopped adding
+	placeholder accounts to the quickfill.  Fixes 328893.
+
 2006-02-19  Neil Williams  <linux at codehelp.co.uk>
 
 	* backend/file/qsf-backend.c : Correcting collect handling,

Modified: gnucash/trunk/src/register/register-gnome/combocell-gnome.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/combocell-gnome.c	2006-02-19 23:41:53 UTC (rev 13309)
+++ gnucash/trunk/src/register/register-gnome/combocell-gnome.c	2006-02-20 00:01:18 UTC (rev 13310)
@@ -707,9 +707,9 @@
                 return FALSE;
 
         find_pos = -1;
-        if (*cursor_position < bcell->value_chars)
+        if (*start_selection < bcell->value_chars)
         {
-                int i = *cursor_position;
+                int i = *start_selection;
                 const char *c;
                 gunichar uc;
               



More information about the gnucash-changes mailing list