From: Carlos Garcia Campos Date: Wed, 30 Sep 2009 16:25:52 +0000 (+0200) Subject: [libview] Clear form fields when rotation changes X-Git-Tag: EVINCE_2_29_1~64 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=899acae2d641802bb46d7aaf850a224614866f08;p=evince.git [libview] Clear form fields when rotation changes Fixes a crash when rotating documents with form field widgets active. Fixes bgo#593316. --- diff --git a/libview/ev-view.c b/libview/ev-view.c index ee5d2582..ea26824a 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -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); }