On Wed, Apr 29, 2009 at 11:48:42AM -0600, Keith Seyffarth wrote:
> 
> Is anyone else having issues wit Gnucash 2.2.7 crashing when you try
> to open an account after portupgrading Firefox in response to security
> audit reports from about a week ago?
[...]
> Ideas? Thoughts? Suggestions?
> 
> Keith S.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

I had the same problem; the attached patch (supplied by Sebastian
Held from gnucash.org) fixed the problem.

Dave Hardman.
Index: /home/sebastian/src/gnucash-2.2/src/register/register-gnome/gnucash-style.c
===================================================================
--- /home/sebastian/src/gnucash-2.2/src/register/register-gnome/gnucash-style.c	(.../trunk/src/register/register-gnome/gnucash-style.c)	(Revision 13692)
+++ /home/sebastian/src/gnucash-2.2/src/register/register-gnome/gnucash-style.c	(.../branches/2.2/src/register/register-gnome/gnucash-style.c)	(Revision 18054)
@@ -48,7 +48,16 @@
         return &key;
 }
 
+static gpointer
+style_create_key (SheetBlockStyle *style)
+{
+        static gint key;
 
+        key = style->cursor->num_rows;
+
+        return g_memdup(&key, sizeof(key));
+}
+
 static void
 cell_dimensions_construct (gpointer _cd, gpointer user_data)
 {
@@ -103,7 +112,7 @@
         if (!dimensions) {
                 dimensions = style_dimensions_new (style);
                 g_hash_table_insert (sheet->dimensions_hash_table,
-                                     style_get_key (style), dimensions);
+                                     style_create_key (style), dimensions);
         }
 
         dimensions->refcount++;
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to