Clear IS_NEW flag after placing pin so the tool knows we're no longer drawing.

Fixes: lp:1834376
* https://bugs.launchpad.net/kicad/+bug/1834376
This commit is contained in:
Jeff Young 2019-06-27 00:01:39 +01:00
parent 2ad40ad10a
commit 5e40de9357
1 changed files with 1 additions and 1 deletions

View File

@ -176,12 +176,12 @@ int LIB_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
break; break;
case LIB_TEXT_T: case LIB_TEXT_T:
part->AddDrawItem( (LIB_TEXT*) item ); part->AddDrawItem( (LIB_TEXT*) item );
item->ClearEditFlags();
break; break;
default: default:
wxFAIL_MSG( "TwoClickPlace(): unknown type" ); wxFAIL_MSG( "TwoClickPlace(): unknown type" );
} }
item->ClearEditFlags();
item = nullptr; item = nullptr;
m_view->ClearPreview(); m_view->ClearPreview();