[Top][All Lists]
[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 01:40:56 +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 #21, bug #37645 (project octave):
The diff below (places the "*.mode" properties at the end) fixes the problem
for me.
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,13 @@
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);
+ names = [names(!n); names(n)];
+ s.properties = orderfields (s.properties, names);
+
## create object
if (strcmp (s.type, "root"))
h = 0;
If there are no objections, I can push a changeset. I'm hesitating because
there may be a property ending in "mode" which has a different meaning. I
don't think that is the case, but I thought I should ask first.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37645>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Rik, 2012/12/04
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/12/09
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Mike Miller, 2012/12/09
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/12/09
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/12/09
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input.,
Ben Abbott <=
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/12/09
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/12/10
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/12/10
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/12/10
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/12/12
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/12/12