zhaoyk %!s(int64=2) %!d(string=hai) anos
pai
achega
b8ffd70794
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      adm_comp/src/lib/UIUtils.ts

+ 3 - 0
adm_comp/src/lib/UIUtils.ts

@@ -84,6 +84,9 @@ export class ViewTool {
 	}
 	
 	static drawText(ctx: CanvasRenderingContext2D, content: string, location: Point, size: Point):void{
+		if(!content)
+			return;
+			
 		const fontSize = 10;
 		ctx.font = "lighter " + fontSize + "px Microsoft YaHei";
 		ctx.textBaseline = "bottom";