1
0
Fork 0

don't use obsolete lon/lat format command, but cycle /sim/lon-lat-format

through 0 -> 1 -> 2 -> 0 ...
This commit is contained in:
mfranz 2006-06-17 16:36:06 +00:00
parent eb5b539b47
commit 19134637c9

View file

@ -248,7 +248,11 @@
<item>
<label>Set Lat/Lon Format</label>
<binding>
<command>old-lat-lon-format-dialog</command>
<command>nasal</command>
<script>
var f = getprop(var d = "/sim/lon-lat-format") + 1;
setprop(d, f &lt; 0 ? 0 : f > 2 ? 0 : f);
</script>
</binding>
</item>