changeset 29203:9ec07d894070 stable

hdl2struct.m: store hidden text properties (bug #57241) * hdl2struct.m (getprops): store hidden text *mode properties to allow restoring auto-positioning features.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Fri, 18 Dec 2020 21:09:55 +0100
parents 6695a6bf4836
children 21dddfdaa636
files scripts/plot/util/hdl2struct.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/hdl2struct.m	Sat Dec 19 16:46:53 2020 +0100
+++ b/scripts/plot/util/hdl2struct.m	Fri Dec 18 21:09:55 2020 +0100
@@ -154,7 +154,9 @@
   propstruct = rmfield (obj, fields(tf));
 
   ## hidden properties
-  hidden_props = {"__autopos_tag__", "looseinset"};
+  hidden_props = {"__autopos_tag__", "looseinset", ...
+                  "positionmode", "rotationmode", ...
+                  "horizontalalignmentmode", "verticalalignmentmode"};
   for prop = hidden_props
     try
       val = get (h, prop{1});