]> 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:29:41 +0000 (18:29 +0200)
Fixes a crash when rotating documents with form field widgets active.
Fixes bgo#593316.

libview/ev-view.c

index e1c84037e2209902e708ce14e4bee609cfc4e6be..2b34529aff6f0539df6a6f3eacb17eb1f953a20a 100644 (file)
@@ -5222,6 +5222,8 @@ ev_view_set_rotation (EvView *view, int rotation)
                gtk_widget_queue_resize (GTK_WIDGET (view));
        }
 
+       ev_view_remove_all (view);
+
        if (rotation != 0)
                clear_selection (view);