diff src/data.cc @ 2366:c90105b99479

[project @ 1996-10-11 23:22:27 by jwe]
author jwe
date Fri, 11 Oct 1996 23:32:05 +0000
parents 5a3f1d00a474
children 449f35baba49
line wrap: on
line diff
--- a/src/data.cc
+++ b/src/data.cc
@@ -45,7 +45,8 @@
 #include "gripes.h"
 #include "help.h"
 #include "oct-map.h"
-#include "pt-const.h"
+#include "ov.h"
+#include "variables.h"
 #include "oct-obj.h"
 #include "utils.h"
 
@@ -794,7 +795,7 @@
       if (args(0).is_map () && args(1).is_string ())
 	{
 	  string s = args(1).string_value ();
-	  octave_value tmp = args(0).lookup_map_element (s, 0, 1);
+	  octave_value tmp = args(0).struct_elt_val (s);
 	  retval = (double) tmp.is_defined ();
 	}
     }