Browse Source

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.
6.0.7
Roberto Fernandez Bautista 4 years ago
parent
commit
3e32c2e5a7
  1. 4
      eeschema/tools/sch_editor_control.cpp

4
eeschema/tools/sch_editor_control.cpp

@ -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…
Cancel
Save