diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 5ae65d2451..e9989908d1 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -1143,12 +1143,16 @@ int DRAWING_TOOL::PlaceImportedGraphics( const TOOL_EVENT& aEvent ) std::list>& list = dlg.GetImportedItems(); if( dlgResult != wxID_OK ) + { + m_inDrawingTool = false; return 0; + } // Ensure the list is not empty: if( list.empty() ) { - wxMessageBox( _( "No graphic items found in file to import") ); + wxMessageBox( _( "No graphic items found in file.") ); + m_inDrawingTool = false; return 0; }