From 8e7ec8ad1926534376ffaf74a9f60b120a2cb5a8 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Wed, 10 Jun 2015 21:44:17 +0200 Subject: [PATCH] output window: click on overview item adjusts output view (jump) On MacOS clicking on the overview item did not result in a correct adjustment of the output window. The reason is that view->y is of type integer but type long is stored in the treestore. This requires correct type casting. --- src/ui/gui/psppire-output-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-output-view.c b/src/ui/gui/psppire-output-view.c index fef0185b03..f7451e6c8a 100644 --- a/src/ui/gui/psppire-output-view.c +++ b/src/ui/gui/psppire-output-view.c @@ -375,7 +375,7 @@ psppire_output_view_put (struct psppire_output_view *view, gtk_tree_store_set (store, &iter, COL_NAME, ds_cstr (&name), COL_ADDR, item, - COL_Y, view->y, + COL_Y, (glong)(view->y), -1); ds_destroy (&name); -- 2.30.2