From 1058fc673a7859c417004327f7e73d1106b26960 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 31 Dec 2018 13:16:02 -0800 Subject: [PATCH] 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. --- src/ui/gui/psppire-output-view.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 -- 2.30.2