Loading pcbnew/pcbframe.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -544,6 +544,7 @@ void PCB_EDIT_FRAME::ViewReloadBoard( const BOARD* aBoard ) const view->Add( worksheet ); view->Add( aBoard->GetRatsnestViewItem() ); aBoard->GetRatsnest()->Recalculate(); // Limit panning to the size of worksheet frame GetGalCanvas()->GetViewControls()->SetPanBoundary( aBoard->GetWorksheetViewItem()->ViewBBox() ); Loading Loading @@ -673,9 +674,6 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable ) { ViewReloadBoard( m_Pcb ); // Update potential changes in the ratsnest m_Pcb->GetRatsnest()->Recalculate(); m_toolManager.SetEnvironment( m_Pcb, GetGalCanvas()->GetView(), GetGalCanvas()->GetViewControls(), this ); m_toolManager.ResetTools( TOOL_BASE::GAL_SWITCH ); Loading Loading
pcbnew/pcbframe.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -544,6 +544,7 @@ void PCB_EDIT_FRAME::ViewReloadBoard( const BOARD* aBoard ) const view->Add( worksheet ); view->Add( aBoard->GetRatsnestViewItem() ); aBoard->GetRatsnest()->Recalculate(); // Limit panning to the size of worksheet frame GetGalCanvas()->GetViewControls()->SetPanBoundary( aBoard->GetWorksheetViewItem()->ViewBBox() ); Loading Loading @@ -673,9 +674,6 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable ) { ViewReloadBoard( m_Pcb ); // Update potential changes in the ratsnest m_Pcb->GetRatsnest()->Recalculate(); m_toolManager.SetEnvironment( m_Pcb, GetGalCanvas()->GetView(), GetGalCanvas()->GetViewControls(), this ); m_toolManager.ResetTools( TOOL_BASE::GAL_SWITCH ); Loading