diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index 37581b057b..34abc0790d 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -293,6 +293,9 @@ void POINT_EDITOR::updateEditedPoint( const TOOL_EVENT& aEvent ) int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) { + if( !m_selectionTool ) + return 0; + const SELECTION& selection = m_selectionTool->GetSelection(); if( selection.Size() != 1 ) @@ -1075,7 +1078,7 @@ int POINT_EDITOR::addCorner( const TOOL_EVENT& aEvent ) int POINT_EDITOR::removeCorner( const TOOL_EVENT& aEvent ) { - if( !m_editedPoint ) + if( !m_editPoints || !m_editedPoint ) return 0; EDA_ITEM* item = m_editPoints->GetParent();