lib_edit_tool.cpp: fix a wxWidgets 3.0.4 compatibility.

This commit is contained in:
jean-pierre charras 2020-11-21 11:56:32 +01:00
parent 64636601b8
commit 01b6cd08b5
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ int LIB_EDIT_TOOL::Paste( const TOOL_EVENT& aEvent )
// If it's not a part then paste as text
newPart = new LIB_PART( "dummy_part" );
LIB_TEXT* newText = new LIB_TEXT( newPart );
newText->SetText( wxString::FromUTF8( text_utf8 ) );
newText->SetText( wxString::FromUTF8( text_utf8.c_str() ) );
newPart->AddDrawItem( newText );
}