]> www.fi.muni.cz Git - evince.git/commitdiff
libview: clear caches after destroying child widgets.
authorMarek Kašík <mkasik@redhat.com>
Mon, 25 Apr 2011 00:02:41 +0000 (21:02 -0300)
committerJosé Aliste <jaliste@gnome.org>
Mon, 25 Apr 2011 11:53:10 +0000 (08:53 -0300)
Fixes bug #648365.

libview/ev-view.c

index c2e888d958998ef70c390f58dcc614c3791d0e50..cbc6b4ac1286bace33bdc6d7218833bffe5ae680 100644 (file)
@@ -5234,8 +5234,8 @@ ev_view_document_changed_cb (EvDocumentModel *model,
        if (document != view->document) {
                gint current_page;
 
-               clear_caches (view);
                ev_view_remove_all (view);
+               clear_caches (view);
 
                if (view->document) {
                        g_object_unref (view->document);