Comment 8 for bug 1242641

Revision history for this message
Daniel Franzen (d-franzen) wrote :

The following workaround works for me. It just requests a redraw of the visible area each time after scrolling:

diff -Naur xournal-0.4.7/src/xo-callbacks.c xournal-fixed/src/xo-callbacks.c
--- xournal-0.4.7/src/xo-callbacks.c 2012-07-04 23:02:57.000000000 +0100
+++ xournal-fixed/src/xo-callbacks.c 2013-12-09 22:11:42.545079488 +0000
@@ -2935,6 +2935,11 @@
   double viewport_top, viewport_bottom;
   struct Page *tmppage;

+ GtkAdjustment *v_adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(GET_COMPONENT("scrolledwindowMain")));
+ GtkAdjustment *h_adj = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(GET_COMPONENT("scrolledwindowMain")));
+
+ gnome_canvas_request_redraw(canvas,h_adj->value,v_adj->value,h_adj->value+h_adj->page_size,v_adj->value+v_adj->page_size);
+
   if (!ui.view_continuous) return;

   if (ui.progressive_bg) rescale_bg_pixmaps();