Eeschema: move, mirror and rotate block: fix some issues.

Fixes #4111
https://gitlab.com/kicad/code/kicad/issues/4111
This commit is contained in:
jean-pierre charras 2020-03-28 12:50:37 +01:00
parent c41199f048
commit 615deb40f3
1 changed files with 2 additions and 1 deletions

View File

@ -362,6 +362,7 @@ const KICAD_T rotatableItems[] = {
SCH_BUS_WIRE_ENTRY_T,
SCH_LINE_T,
SCH_JUNCTION_T,
SCH_NO_CONNECT_T,
EOT
};
@ -666,7 +667,7 @@ int SCH_EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent )
}
else if( selection.GetSize() > 1 )
{
mirrorPoint = (wxPoint)selection.GetReferencePoint();
mirrorPoint = m_frame->GetNearestGridPosition( (wxPoint)selection.GetCenter() );
for( unsigned ii = 0; ii < selection.GetSize(); ii++ )
{