diff src/graphics.h.in @ 12324:85934e0fcce9

gl-renderer.cc and gl2ps-renderer.cc: access objects directly from gh_manager instead of working with handles
author John W. Eaton <jwe@octave.org>
date Tue, 01 Feb 2011 16:25:15 -0500
parents db1f49eaba6b
children 2ad37783bf01
line wrap: on
line diff
--- a/src/graphics.h.in	Tue Feb 01 15:55:44 2011 -0500
+++ b/src/graphics.h.in	Tue Feb 01 16:25:15 2011 -0500
@@ -4313,6 +4313,11 @@
       ? lookup (val.double_value ()) : graphics_handle ();
   }
 
+  static graphics_object get_object (double val)
+  {
+    return get_object (lookup (val));
+  }
+
   static graphics_object get_object (const graphics_handle& h)
   {
     return instance_ok () ? instance->do_get_object (h) : graphics_object ();