2002-09-15 Joshua Sled <jsled@asynchronous.org>

* src/gnome-utils/gnc-dense-cal.c (gnc_dense_cal_mark): Fix
	assertion failure for ignorant callers, Bug#92779.


Thanks, Tim.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7215 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2002-09-16 00:44:38 +00:00
parent 1d7c0414b0
commit 06bdfcf68d
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-09-15 Joshua Sled <jsled@asynchronous.org>
* src/gnome-utils/gnc-dense-cal.c (gnc_dense_cal_mark): Fix
assertion failure for ignorant callers, Bug#92779.
2002-09-14 David Hampton <hampton@employees.org>
Refactor the startup to display the splash screen faster (bug #92192)

View File

@ -1410,8 +1410,12 @@ gnc_dense_cal_mark( GncDenseCal *dcal,
if ( doc < 0 ) {
continue;
}
g_assert( doc < dcal->numMarks );
dcal->marks[doc] = g_list_append( dcal->marks[doc], newMark );
if ( doc >= dcal->numMarks ) {
/* It's not going to get any better, so just
* stop processing. */
break;
}
newMark->ourMarks = g_list_append( newMark->ourMarks,
GINT_TO_POINTER(doc) );
}