eeschema: Make pasted text left aligned so that it is editable
Previously it was pasted as centre aligned, which is not supported in the GUI.
This commit is contained in:
parent
5a28a06597
commit
3e32c2e5a7
|
@ -1541,7 +1541,9 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
|||
catch( IO_ERROR& )
|
||||
{
|
||||
// If it wasn't content, then paste as text
|
||||
paste_screen->Append( new SCH_TEXT( wxPoint( 0, 0 ), text ) );
|
||||
SCH_TEXT* text_item = new SCH_TEXT( wxPoint( 0, 0 ), text );
|
||||
text_item->SetLabelSpinStyle( LABEL_SPIN_STYLE::RIGHT ); // Left alignment
|
||||
paste_screen->Append( text_item );
|
||||
}
|
||||
|
||||
// Save loaded screen instances to m_clipboardSheetInstances
|
||||
|
|
Loading…
Reference in New Issue