From 2505a48ac29713cc2fcc4acc6165969c1f26e878 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 19 Feb 2024 08:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Tooltip`=E7=9A=84=E5=9C=86?= =?UTF-8?q?=E7=82=B9=E6=A0=87=E8=AE=B0=E4=B8=8D=E4=BC=9A=E8=87=AA=E9=80=82?= =?UTF-8?q?=E5=BA=94=E9=A2=9C=E8=89=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Component/Tooltip/TooltipView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Component/Tooltip/TooltipView.cs b/Runtime/Component/Tooltip/TooltipView.cs index d849c4a7..15dd7fec 100644 --- a/Runtime/Component/Tooltip/TooltipView.cs +++ b/Runtime/Component/Tooltip/TooltipView.cs @@ -93,7 +93,7 @@ namespace XCharts.Runtime column.SetActive(true); column.SetText(param.columns[j]); - if (j == 0 && contentLabelStyle0 && ChartHelper.IsClearColor(contentLabelStyle0.textStyle.color)) + if (j == 0 && contentLabelStyle0 != null && ChartHelper.IsClearColor(contentLabelStyle0.textStyle.color)) column.text.SetColor(param.color); if (j >= m_ColumnMaxWidth.Count)