psppire-output-viewer: Make sure that initial items are rendered at show.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 31 Dec 2018 21:16:02 +0000 (13:16 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 31 Dec 2018 21:16:20 +0000 (13:16 -0800)
When output items were shown in the output window, the first item
was not shown until the user moused over it and thereby triggered the
on_style_updated callback.  This fixes the problem.

src/ui/gui/psppire-output-view.c

index 0a2b4c797072a13f583bd67e0c30c83b7dbe0fb3..6f69819cd8a7e1660b414fa21964a9f1c74d38d7 100644 (file)
@@ -645,13 +645,8 @@ on_size_allocate (GtkWidget    *widget,
                   GdkRectangle *allocation,
                   struct psppire_output_view *view)
 {
-  int new_render_width = MAX (300, allocation->width);
-
-  if (view->render_width != new_render_width)
-    {
-      view->render_width = new_render_width;
-      rerender (view);
-    }
+  view->render_width = MAX (300, allocation->width);
+  rerender (view);
 }
 
 static void