Comment 5 for bug 1474571

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

Happens also in Ubuntu-14.04.3 (Same version of galculator).

This is the place causing segmentation fault, and here is easy fix (not sure what is breaks).

--- ui_orig.c 2015-08-19 20:19:23.409562722 +0300
+++ src/ui.c 2015-08-19 20:20:54.113560996 +0300
@@ -591,6 +591,7 @@
  if (!table) return;

     table_children = gtk_container_get_children(GTK_CONTAINER(table));
+ if (!table_children) return;
  /* dispctrl_right has an extra table for cosmetic reasons. */
  if (GTK_IS_TABLE_OR_GRID (table_children->data))
   table = (GTK_TABLE_OR_GRID *) GTK_WIDGET(table_children->data);