]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Clear form fields when rotation changes
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 30 Sep 2009 16:25:52 +0000 (18:25 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 30 Sep 2009 16:30:19 +0000 (18:30 +0200)
Fixes a crash when rotating documents with form field widgets active.
Fixes bgo#593316.

libview/ev-view.c

index ee5d25824579b1d5b7e621a26a17fe89f566d7f8..ea26824ac1b179bb59823e9995f9d3673410f3b7 100644 (file)
@@ -5098,6 +5098,8 @@ ev_view_rotation_changed_cb (EvDocumentModel *model,
                gtk_widget_queue_resize (GTK_WIDGET (view));
        }
 
+       ev_view_remove_all (view);
+
        if (rotation != 0)
                clear_selection (view);
 }