Commit 9fca82c2 authored by Maciej Suminski's avatar Maciej Suminski

pcbnew: bugfix for crashes when canvas is switched while dragging items (GAL).

parent 16b2c401
...@@ -48,6 +48,12 @@ EDIT_TOOL::EDIT_TOOL() : ...@@ -48,6 +48,12 @@ EDIT_TOOL::EDIT_TOOL() :
} }
void EDIT_TOOL::Reset( RESET_REASON aReason )
{
m_dragging = false;
}
bool EDIT_TOOL::Init() bool EDIT_TOOL::Init()
{ {
// Find the selection tool, so they can cooperate // Find the selection tool, so they can cooperate
......
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
EDIT_TOOL(); EDIT_TOOL();
/// @copydoc TOOL_INTERACTIVE::Reset() /// @copydoc TOOL_INTERACTIVE::Reset()
void Reset( RESET_REASON aReason ) {}; void Reset( RESET_REASON aReason );
/// @copydoc TOOL_INTERACTIVE::Init() /// @copydoc TOOL_INTERACTIVE::Init()
bool Init(); bool Init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment