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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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