Null Check in RenderMain::CanRenderPoint (#1316)

This commit is contained in:
Lee Won Jun
2020-07-18 06:33:15 +09:00
committed by GitHub
parent 96700ceb97
commit ed7bfb8142

View File

@@ -137,7 +137,7 @@ namespace GraphControl::DX
bool RenderMain::CanRenderPoint()
{
if (m_drawNearestPoint || m_drawActiveTracing)
if (m_graph && (m_drawNearestPoint || m_drawActiveTracing))
{
Point trackPoint = m_pointerLocation;