diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 66962f8dc0..89cee248ff 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -544,7 +544,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) case SCH_SHEET_T: { SCH_SHEET* sheet = static_cast( head ); - rotPoint = m_frame->GetNearestGridPosition( sheet->GetRotationCenter() ); + rotPoint = m_frame->GetNearestHalfGridPosition( sheet->GetRotationCenter() ); // Rotate the sheet on itself. Sheets do not have an anchor point. for( int i = 0; clockwise ? i < 3 : i < 1; ++i ) @@ -565,7 +565,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) if( moving && selection.HasReferencePoint() ) rotPoint = (wxPoint) selection.GetReferencePoint(); else - rotPoint = m_frame->GetNearestGridPosition( (wxPoint) selection.GetCenter() ); + rotPoint = m_frame->GetNearestHalfGridPosition( (wxPoint) selection.GetCenter() ); } for( unsigned ii = 0; ii < selection.GetSize(); ii++ ) diff --git a/eeschema/tools/symbol_editor_edit_tool.cpp b/eeschema/tools/symbol_editor_edit_tool.cpp index e0f81c08ca..6a07bc87b3 100644 --- a/eeschema/tools/symbol_editor_edit_tool.cpp +++ b/eeschema/tools/symbol_editor_edit_tool.cpp @@ -161,7 +161,7 @@ int SYMBOL_EDITOR_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) if( selection.GetSize() == 1 ) rotPoint = item->GetPosition(); else - rotPoint = m_frame->GetNearestGridPosition( mapCoords( selection.GetCenter() ) ); + rotPoint = m_frame->GetNearestHalfGridPosition( mapCoords( selection.GetCenter() ) ); for( unsigned ii = 0; ii < selection.GetSize(); ii++ ) {