From: Ben Pfaff Date: Mon, 31 Dec 2018 21:16:02 +0000 (-0800) Subject: psppire-output-viewer: Make sure that initial items are rendered at show. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=1058fc673a7859c417004327f7e73d1106b26960 psppire-output-viewer: Make sure that initial items are rendered at show. 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. --- diff --git a/src/ui/gui/psppire-output-view.c b/src/ui/gui/psppire-output-view.c index 0a2b4c7970..6f69819cd8 100644 --- a/src/ui/gui/psppire-output-view.c +++ b/src/ui/gui/psppire-output-view.c @@ -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