octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37645] "set" function not properly working wi


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input.
Date: Mon, 10 Dec 2012 13:11:33 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17

Follow-up Comment #24, bug #37645 (project octave):

Comparing to the default values may not be reliable .. it is possible for
property to have a default value and have its mode = "manual".

The activepositionproperty can be added as below.  Are there any other
properties that should be included?


diff --git a/scripts/plot/struct2hdl.m b/scripts/plot/struct2hdl.m
--- a/scripts/plot/struct2hdl.m
+++ b/scripts/plot/struct2hdl.m
@@ -92,6 +92,14 @@
     p = p(1:2, 1:(tst(end)-1));
   endif
 
+  ## Place the "*mode" properties as the end to avoid have the updaters
+  ## change the mode to "manual" when the value is "auto"
+  names = fieldnames (s.properties);
+  n = strncmp (cellfun (@fliplr, names, "uniformoutput", false), "edom", 4);
+  n = (n & strcmp (names, "activepositionproperty"));
+  names = [names(!n); names(n)];
+  s.properties = orderfields (s.properties, names);
+
   ## create object
   if (strcmp (s.type, "root"))
     h = 0;


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37645>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]