Fixed problem in eeschema when leaving sub sheet in a hierarchy.
(two scrolling parameters were different when calling SetScroolBars in drawframe.cpp and hierarch.cpp
This commit is contained in:
parent
f69a4914fe
commit
738c90b41b
|
@ -308,13 +308,14 @@ static bool UpdateScreenFromSheet( WinEDA_SchematicFrame* frame )
|
|||
// Reset display settings of the new screen
|
||||
// Assumes m_CurrentSheet has already been updated.
|
||||
frame->ClearMsgPanel();
|
||||
frame->DrawPanel->SetScrollbars( NewScreen->m_ZoomScalar,
|
||||
NewScreen->m_ZoomScalar,
|
||||
int pixelsPerUnitX = 1;
|
||||
int pixelsPerUnitY = 1;
|
||||
frame->DrawPanel->SetScrollbars( pixelsPerUnitX, pixelsPerUnitY,
|
||||
NewScreen->m_ScrollbarNumber.x,
|
||||
NewScreen->m_ScrollbarNumber.y,
|
||||
NewScreen->m_ScrollbarPos.x,
|
||||
NewScreen->m_ScrollbarPos.y, TRUE );
|
||||
|
||||
|
||||
// update the References
|
||||
frame->m_CurrentSheet->UpdateAllScreenReferences();
|
||||
frame->SetSheetNumberAndCount();
|
||||
|
|
Loading…
Reference in New Issue