From d19da9dfad9b0b2d441bfda56c60a573731ba3f6 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 30 Sep 2009 18:25:52 +0200 Subject: [PATCH] [libview] Clear form fields when rotation changes Fixes a crash when rotating documents with form field widgets active. Fixes bgo#593316. --- libview/ev-view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libview/ev-view.c b/libview/ev-view.c index e1c84037..2b34529a 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -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); -- 2.47.1