output window: click on overview item adjusts output view (jump)
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 10 Jun 2015 19:44:17 +0000 (21:44 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 10 Jun 2015 19:44:17 +0000 (21:44 +0200)
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

index fef0185b0307d737b61ebd6ec9c37d82751d8020..f7451e6c8a306b87ff9e591d2273c6fd0a4b9304 100644 (file)
@@ -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);