changeset 24501:2f10c3265607

Make sure axes "colormap" property listeners are executed (bug #52799). * graphics.in.h (axes::properties::update___colormap__): add updater to execute "colormap" listeners
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 04 Jan 2018 00:42:32 +0100
parents 5553f0ada5c6
children b480fe1089bb
files libinterp/corefcn/graphics.in.h
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.in.h	Wed Jan 03 13:49:27 2018 -0800
+++ b/libinterp/corefcn/graphics.in.h	Thu Jan 04 00:42:32 2018 +0100
@@ -3709,7 +3709,7 @@
       radio_property ztickmode u , "{auto}|manual"
 
       // Octave-specific properties
-      array_property __colormap__ h , Matrix ()
+      array_property __colormap__ hu , Matrix ()
       double_property mousewheelzoom , 0.5
 
       // hidden properties for alignment of subplots
@@ -4117,6 +4117,11 @@
       set___colormap__ (val);
     }
 
+    void update___colormap__ (void)
+    {
+      colormap.run_listeners (POSTSET);
+    }
+
     octave_value get_colormap (void) const;
 
   public: