lib_edit_tool.cpp: fix a wxWidgets 3.0.4 compatibility.
This commit is contained in:
parent
64636601b8
commit
01b6cd08b5
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue