[Gnucash-changes] r12903 - gnucash/trunk/src/gnome-utils - Fix a fencepost error.

Derek Atkins warlord at cvs.gnucash.org
Thu Jan 19 14:34:23 EST 2006


Author: warlord
Date: 2006-01-19 14:34:23 -0500 (Thu, 19 Jan 2006)
New Revision: 12903
Trac: http://svn.gnucash.org/trac/changeset/12903

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Fix a fencepost error.
Fixes a crash trying to reload a file with empty windows.
(there's still another bug which is that we should ignore empty windows)


Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-01-19 18:43:59 UTC (rev 12902)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-01-19 19:34:23 UTC (rev 12903)
@@ -1247,7 +1247,7 @@
 
   /* Show the new entry in all windows. */
   index = g_list_index(active_windows, window);
-  if (index > n_radio_entries) {
+  if (index >= n_radio_entries) {
     LEAVE("window %d, only %d actions", index, n_radio_entries);
     return;
   }



More information about the gnucash-changes mailing list