]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Remove redundant check
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 4 May 2010 08:58:37 +0000 (10:58 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 4 May 2010 08:58:37 +0000 (10:58 +0200)
shell/ev-window.c

index 87ec655ba796580d8b4b3231175d9f32271fa1eb..38ac098ad74b0153e8805c0a419a6f2d0877ab31 100644 (file)
@@ -5489,7 +5489,7 @@ window_configure_event_cb (EvWindow *window, GdkEventConfigure *event, gpointer
        state = gdk_window_get_state (gtk_widget_get_window (GTK_WIDGET (window)));
 
        if (!(state & GDK_WINDOW_STATE_FULLSCREEN)) {
-               if (!ev_window_is_empty (window) && window->priv->document) {
+               if (window->priv->document) {
                        ev_document_get_max_page_size (window->priv->document,
                                                       &document_width, &document_height);
                        g_settings_set (window->priv->last_settings, "window-ratio", "(dd)",