From: Friedrich Beckmann Date: Wed, 10 Jun 2015 19:44:17 +0000 (+0200) Subject: output window: click on overview item adjusts output view (jump) X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e7ec8ad1926534376ffaf74a9f60b120a2cb5a8;p=pspp 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. --- 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);