Dragged items offset is cleared when dragging is finished.

This commit is contained in:
Maciej Suminski 2014-07-09 16:50:31 +02:00
parent f32419f7e6
commit 49dd416c53
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,9 @@ bool EDIT_TOOL::Init()
m_selectionTool->AddMenuItem( COMMON_ACTIONS::remove, SELECTION_CONDITIONS::NotEmpty );
m_selectionTool->AddMenuItem( COMMON_ACTIONS::properties, SELECTION_CONDITIONS::NotEmpty );
m_offset.x = 0;
m_offset.y = 0;
setTransitions();
return true;
@ -186,6 +189,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
}
m_dragging = false;
m_offset.x = 0;
m_offset.y = 0;
if( restore )
{