Fixed modification point for EDIT_TOOL when the tool is not active.

This commit is contained in:
Maciej Suminski 2014-05-13 11:22:51 +02:00
parent d9eb15c9fa
commit 562beafcde
1 changed files with 5 additions and 0 deletions

View File

@ -492,6 +492,11 @@ wxPoint EDIT_TOOL::getModificationPoint( const SELECTION_TOOL::SELECTION& aSelec
}
else
{
// If EDIT_TOOL is not currently active then it means that the cursor position is not
// updated, so we have to fetch the latest value
if( m_toolMgr->GetCurrentToolId() != m_toolId )
m_cursor = getViewControls()->GetCursorPosition();
return wxPoint( m_cursor.x, m_cursor.y );
}
}