Skip to content

Commit

Permalink
Actually save 'list' when we reverse it
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6962 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
derekatkins committed Jun 14, 2002
1 parent 2ab8a11 commit 00a88c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gnome-search/dialog-search.c
Expand Up @@ -233,7 +233,7 @@ gnc_search_dialog_prepend_item (GNCSearchWindow *sw, gpointer object)
static void
gnc_search_dialog_display_results (GNCSearchWindow *sw)
{
GList *list;
GList *list, *node;
GtkAdjustment *vadjustment;
gfloat save_value = 0.0;
gboolean have_list = TRUE;
Expand Down Expand Up @@ -308,8 +308,8 @@ gnc_search_dialog_display_results (GNCSearchWindow *sw)
list = g_list_reverse (gncQueryRun (sw->q));

/* Add the list of items to the clist */
for (; list; list = list->next) {
gnc_search_dialog_prepend_item (sw, list->data);
for (node = list; node; node = node->next) {
gnc_search_dialog_prepend_item (sw, node->data);
}

/* Need to reverse again for internal consistency */
Expand Down

0 comments on commit 00a88c5

Please sign in to comment.