Prevent ghost image after canceling bitmap placement.

(cherry picked from commit ecb28ddf1c)
This commit is contained in:
Alex 2023-02-17 03:29:27 +03:00 committed by dsa-t
parent 3f535aca8c
commit 7949c09183
2 changed files with 2 additions and 0 deletions

View File

@ -501,6 +501,7 @@ int SCH_DRAWING_TOOLS::PlaceImage( const TOOL_EVENT& aEvent )
{
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
m_view->ClearPreview();
m_view->RecacheAllItems();
delete image;
image = nullptr;
};

View File

@ -572,6 +572,7 @@ int DRAWING_TOOL::PlaceImage( const TOOL_EVENT& aEvent )
{
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
m_view->ClearPreview();
m_view->RecacheAllItems();
delete image;
image = nullptr;
};