From 717ae92b23cda0cef035fb84a515a149b7396896 Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Fri, 12 Jun 2020 21:58:17 +0200 Subject: [PATCH] canvas_efis/efis-canvas.nas bugfix --- Nasal/modules/canvas_efis/efis-canvas.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/modules/canvas_efis/efis-canvas.nas b/Nasal/modules/canvas_efis/efis-canvas.nas index ed73e396a..ba945fe44 100644 --- a/Nasal/modules/canvas_efis/efis-canvas.nas +++ b/Nasal/modules/canvas_efis/efis-canvas.nas @@ -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; }