diff libinterp/corefcn/graphics.in.h @ 19078:4c59f69fa52c

figure: define adopted axes "currentaxes" if none is defined (bug #41573) * graphics.in.h (figure::properties::adopt): declare new custom method * graphics.cc (figure::properties::adopt): when adopting an axes, define it as currentaxes if none is already defined * graphics.cc: add %! test for currentaxes update
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sat, 23 Aug 2014 16:12:03 +0200
parents 9609f345823e
children 1288a2f27769
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.in.h	Thu Aug 21 16:05:09 2014 -0700
+++ b/libinterp/corefcn/graphics.in.h	Sat Aug 23 16:12:03 2014 +0200
@@ -3306,6 +3306,8 @@
         }
     }
 
+    void adopt (const graphics_handle& h);
+
     void set_position (const octave_value& val,
                        bool do_notify_toolkit = true);