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>
Thu, 11 Jun 2015 12:53:28 +0000 (14:53 +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 d6e75f32f5b63f7a31a808085843304c9ab747e3..83029959cff2bd907514540faf9bc8eb34b79f98 100644 (file)
@@ -371,7 +371,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);