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

This commit is contained in:
Maciej Suminski 2014-09-08 14:09:20 +02:00
parent 16b2c40184
commit 9fca82c23f
2 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,12 @@ EDIT_TOOL::EDIT_TOOL() :
}
void EDIT_TOOL::Reset( RESET_REASON aReason )
{
m_dragging = false;
}
bool EDIT_TOOL::Init()
{
// Find the selection tool, so they can cooperate

View File

@ -50,7 +50,7 @@ public:
EDIT_TOOL();
/// @copydoc TOOL_INTERACTIVE::Reset()
void Reset( RESET_REASON aReason ) {};
void Reset( RESET_REASON aReason );
/// @copydoc TOOL_INTERACTIVE::Init()
bool Init();