diff src/graphics.h.in @ 10265:8c583af2cf64

validate text object children of axes objects
author John W. Eaton <jwe@octave.org>
date Thu, 04 Feb 2010 03:56:28 -0500
parents 6a88b00c5ad6
children 4b124317dc38
line wrap: on
line diff
--- a/src/graphics.h.in	Thu Feb 04 03:55:41 2010 -0500
+++ b/src/graphics.h.in	Thu Feb 04 03:56:28 2010 -0500
@@ -3871,6 +3871,12 @@
     return instance_ok () ? instance->do_lookup (val) : graphics_handle ();
   }
 
+  static graphics_handle lookup (const octave_value& val)
+  {
+    return val.is_real_scalar ()
+      ? lookup (val.double_value ()) : graphics_handle ();
+  }
+
   static graphics_object get_object (const graphics_handle& h)
   {
     return instance_ok () ? instance->do_get_object (h) : graphics_object ();