diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 6171f33cd9..0f9ded1dc9 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -1367,7 +1367,7 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent ) } else { - m_commit->Remove( item ); + m_commit->Remove( bItem ); } };