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:
charras 2010-02-10 16:47:11 +00:00
parent f69a4914fe
commit 738c90b41b
1 changed files with 4 additions and 3 deletions

View File

@ -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();