Mercurial > octave
diff libinterp/corefcn/graphics.in.h @ 19324:68db8396c378
Make "image ()" use the default image cdata
* graphics.in.h (image::properties::initialize_data): new public method to trigger the initialization of the x/ydata properties.
* graphics.in.h (image::image): call initialize_data.
* image.m: when called with no argument, use default image cdata
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 31 Oct 2014 20:44:21 +0100 |
parents | 3e0720bd6bfc |
children | 0e1f5a750d00 |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.in.h Tue Nov 11 20:42:34 2014 +0100 +++ b/libinterp/corefcn/graphics.in.h Fri Oct 31 20:44:21 2014 +0100 @@ -4583,6 +4583,8 @@ octave_value get_color_data (void) const; + void initialize_data (void) { update_cdata (); } + // See the genprops.awk script for an explanation of the // properties declarations. // Programming note: Keep property list sorted if new ones are added. @@ -4750,6 +4752,7 @@ : base_graphics_object (), xproperties (mh, p) { xproperties.override_defaults (*this); + xproperties.initialize_data (); } ~image (void) { }