2007-07-09 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_form_field_text_save),
(ev_view_form_field_choice_save):
Fix a crash when closing whith a form widget visible.
svn path=/trunk/; revision=2567
+2007-07-09 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-view.c: (ev_view_form_field_text_save),
+ (ev_view_form_field_choice_save):
+
+ Fix a crash when closing whith a form widget visible.
+
2007-07-09 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_form_field_button_create_widget):
EvFormField *field)
{
EvFormFieldButton *field_button = EV_FORM_FIELD_BUTTON (field);
- GdkRegion *field_region;
+ GdkRegion *field_region = NULL;
switch (field_button->type) {
case EV_FORM_FIELD_BUTTON_PUSH:
{
EvFormField *field;
+ if (!view->document)
+ return;
+
field = g_object_get_data (G_OBJECT (widget), "form-field");
if (field->changed) {
{
EvFormField *field;
+ if (!view->document)
+ return;
+
field = g_object_get_data (G_OBJECT (widget), "form-field");
if (field->changed) {