[evince/gnome-2-28] [libview] Clear form fields when rotation changes



commit d19da9dfad9b0b2d441bfda56c60a573731ba3f6
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Wed Sep 30 18:25:52 2009 +0200

    [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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index e1c8403..2b34529 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]