1
0
Fork 0

canvas_efis/efis-canvas.nas bugfix

This commit is contained in:
Henning Stahlke 2020-06-12 21:58:17 +02:00 committed by James Turner
parent 027d1e4e61
commit 717ae92b23

View file

@ -101,7 +101,7 @@ var EFISCanvas = {
if (me[key] != nil) {
me._updateClip(key);
}
#else print(" loadsvg: invalid key ",key);
#else logprint(DEV_ALERT, " loadsvg: invalid key ",key);
}
return me;
},
@ -165,7 +165,7 @@ var EFISCanvas = {
},
updateTextElement: func(svgkey, text, color = nil) {
if (me[svgkey] == nil or me[svgkey].setText == nil){
if (me[svgkey] == nil or !isa(me[svgkey], canvas.Text)) {
print("updateTextElement(): Invalid argument ", svgkey);
return;
}