Fix immediate crash on startup of GTK debugger

This commit is contained in:
R. Belmont 2010-01-30 21:10:01 +00:00
parent 48e3d6cca0
commit 14981a97b5

View File

@ -218,7 +218,10 @@ static void dview_size_allocate(GtkWidget *wdv, GtkAllocation *allocation)
GdkGeometry x; GdkGeometry x;
x.max_width = size.x*dvc->fixedfont_width; x.max_width = size.x*dvc->fixedfont_width;
x.max_height = -1; x.max_height = -1;
gdk_window_set_geometry_hints( wdv->window,&x, GDK_HINT_MAX_SIZE ); if (wdv->window)
{
gdk_window_set_geometry_hints( wdv->window,&x, GDK_HINT_MAX_SIZE );
}
} }
debug_view_set_visible_position(dv->view, pos); debug_view_set_visible_position(dv->view, pos);
debug_view_set_visible_size(dv->view, vsize); debug_view_set_visible_size(dv->view, vsize);