diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index bb4093c39b..8e7c0b4f0e 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -313,7 +313,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) lockOverride = false; } - } while( evt = Wait() ); + } while( ( evt = Wait() ) ); //Should be assignment not equality test if( m_dragging ) decUndoInhibit();