changeset 29261:e818ceb2a74e

maint: merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 04 Jan 2021 14:44:22 +0100
parents 11343ca3c125 (current diff) 216ef81dafb6 (diff)
children fdfd874293f6
files scripts/plot/util/struct2hdl.m
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/struct2hdl.m	Thu Dec 17 20:18:51 2020 -0500
+++ b/scripts/plot/util/struct2hdl.m	Mon Jan 04 14:44:22 2021 +0100
@@ -130,7 +130,10 @@
       names{n_pos(2)} = "position";
     endif
   endif
-  ## Reorder the properties with the mode properties coming last
+  ## Set "units" property early
+  n = strcmp (names, "units");
+  names = [names(n); names(! n)];
+  ## Reorder the properties
   s.properties = orderfields (s.properties, names);
 
   ## Silence deprecation warnings