view .hgsubstate @ 18899:3d9e503aea2c

Update image "x/ydata" when "cdata" is changed (bug #42121) * graphics.in.h (image::properties): add two hidden properties "xdatamode" and "ydatamode" * graphics.in.h (image::properties): modify properties "xdata" and "ydata" so that their respective *mode is updated * graphics.in.h (image::properties::update_cdata): setting "cdata" updates "x/ydata" when "x/ydatamode" is "auto" * graphics.in.h (image::properties::update_x/ydata): setting "x/ydata" to empty matrix updates "x/ydata" to [1 npix] and changes "x/ydatamode" to "auto" * graphics.in.h (image::properties::auto_xdata (void), image::properties::auto_ydata (void)): new functions to compute auto x/ydata * image.m (__img__): don't replace empty "x/ydata" in order to use new behavior * image.m: add test for bug #42121
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Mon, 14 Apr 2014 22:53:44 +0200
parents 18096cd30339
children
line wrap: on
line source

6d4e36653a40da6604507406f2a97e3e64bf9dbf gnulib-hg