At the SWS GitHub repo the case issued by nofish (
https://github.com/reaper-oss/sws/issues/966) was closed on Feb 6, but I still have the same issue that I reported above.
If I lock track height, and then use my custom action given in post #2 above, track height locking gets messed up. The meny shows a check mark, but the track height lock is not functional.
I can accept that
SWS: Vertical zoom to selected items would change the track height even if it is locked, but afterwards I would still expect track height locking to be in effect with the new height. That is not the way it works now.