Fix new image drawing issue.

This commit is contained in:
Jeff Young 2019-05-03 11:16:24 +01:00
parent bcdc3ad90a
commit a825cdfa5a
1 changed files with 3 additions and 0 deletions

View File

@ -455,6 +455,8 @@ int SCH_DRAWING_TOOL::PlaceImage( const TOOL_EVENT& aEvent )
m_view->ClearPreview();
m_view->AddToPreview( image->Clone() );
m_view->RecacheAllItems(); // Bitmaps are cached in Opengl
m_selectionTool->AddItemToSel( image );
m_controls->SetCursorPosition( cursorPos, false );
@ -480,6 +482,7 @@ int SCH_DRAWING_TOOL::PlaceImage( const TOOL_EVENT& aEvent )
image->SetPosition( (wxPoint)cursorPos );
m_view->ClearPreview();
m_view->AddToPreview( image->Clone() );
m_view->RecacheAllItems(); // Bitmaps are cached in Opengl
}
// Enable autopanning and cursor capture only when there is a module to be placed