include format.h only where necessary.
[pspp-builds.git] / src / ui / gui / var-display.c
index 3245e1a3848ee4246a017e9477705594b436c467..c69730f6f2a104abf607d64a9a335bb15bb15d7e 100644 (file)
@@ -1,9 +1,10 @@
+#include <config.h>
 #include "var-display.h"
 
 #include <data/variable.h>
+#include <data/format.h>
 #include <stdlib.h>
 
-#include "var-sheet.h"
 #include <gettext.h>
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
@@ -62,7 +63,7 @@ missing_values_to_string (const struct variable *pv, GError **err)
          for (i = 0 ; i < n; ++i )
            {
              union value v;
-             mv_peek_value (miss, &v, i);
+             mv_get_value (miss, &v, i);
              mv[i] = value_to_text (v, *fmt);
              if ( i > 0 )
                g_string_append (gstr, ", ");
@@ -77,7 +78,7 @@ missing_values_to_string (const struct variable *pv, GError **err)
          GString *gstr = g_string_sized_new (10);
          gchar *l, *h;
          union value low, high;
-         mv_peek_range (miss, &low.f, &high.f);
+         mv_get_range (miss, &low.f, &high.f);
 
          l = value_to_text (low, *fmt);
          h = value_to_text (high, *fmt);
@@ -90,7 +91,7 @@ missing_values_to_string (const struct variable *pv, GError **err)
            {
              gchar *ss = 0;
              union value v;
-             mv_peek_value (miss, &v, 0);
+             mv_get_value (miss, &v, 0);
 
              ss = value_to_text (v, *fmt);