Attempt to fix the scalar bug

This commit is contained in:
Jonathan Redpath 2018-03-26 21:16:35 +01:00
parent ddce64bce8
commit d0a8057a38

View file

@ -762,7 +762,7 @@ canvas.NDStyles["Airbus"] = {
is_true: func(nd) {
#var cur_wp = getprop("autopilot/route-manager/current-wp");
var deg = int(getprop("/autopilot/route-manager/wp/bearing-deg"));
nd.symbols.wpActiveCrs.setText(""~deg~"°");
nd.symbols.wpActiveCrs.setText((deg or "")~"°");
nd.symbols.wpActiveCrs.show();
},
is_false: func(nd) nd.symbols.wpActiveCrs.hide(),