[eog] EogScrollView: Fix unitialized data usage



commit 0a4e7b586c720dbb742f2da901c6e0ac3f3b1d48
Author: Felix Riemann <friemann gnome org>
Date:   Tue Dec 31 15:42:17 2013 +0100

    EogScrollView: Fix unitialized data usage

 src/eog-scroll-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 4073ebc..66bd6d3 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -1814,6 +1814,7 @@ display_draw (GtkWidget *widget, cairo_t *cr, gpointer data)
 
        /* Paint the background */
        cairo_set_source (cr, gdk_window_get_background_pattern (gtk_widget_get_window (priv->display)));
+       gtk_widget_get_allocation (GTK_WIDGET (priv->display), &allocation);
        cairo_rectangle (cr, 0, 0, allocation.width, allocation.height);
        cairo_rectangle (cr, MAX (0, xofs), MAX (0, yofs),
                         scaled_width, scaled_height);


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