Beginning of VFM cleanup.
[pspp-builds.git] / src / command.c
index b386317a2c1052f07617f51f48ef022328b73339..b12e46d0dfb9c7d815e7164b537b68832f8789f0 100644 (file)
@@ -201,7 +201,8 @@ cmd_parse (void)
 
   /* If we're in a FILE TYPE structure, only certain commands can be
      allowed. */
-  if (pgm_state == STATE_INPUT && vfm_source == &file_type_source
+  if (pgm_state == STATE_INPUT
+      && case_source_is_class (vfm_source, &file_type_source_class)
       && !FILE_TYPE_okay (cp))
     return CMD_FAILURE;