fixed bug

This commit is contained in:
monitor1394
2019-09-29 09:19:26 +08:00
parent fae92e1a5e
commit ffe096a612

View File

@@ -78,6 +78,7 @@ namespace XCharts
/// <returns></returns> /// <returns></returns>
public Serie GetSerie(string name) public Serie GetSerie(string name)
{ {
if (string.IsNullOrEmpty(name)) return null;
for (int i = 0; i < m_Series.Count; i++) for (int i = 0; i < m_Series.Count; i++)
{ {
if (name.Equals(m_Series[i].name)) if (name.Equals(m_Series[i].name))