Fixed vanishing pads issue in the pad properties dialog (GAL).

This commit is contained in:
Maciej Suminski 2014-07-28 14:01:29 +02:00
parent f51ad438b3
commit 6ba1410054
1 changed files with 8 additions and 5 deletions

View File

@ -796,6 +796,8 @@ void DIALOG_PAD_PROPERTIES::redraw()
BOX2I bbox = m_dummyPad->ViewBBox();
if( bbox.GetSize().x > 0 && bbox.GetSize().y > 0 )
{
// Autozoom
m_panelShowPadGal->GetView()->SetViewport( BOX2D( bbox.GetOrigin(), bbox.GetSize() ) );
@ -804,6 +806,7 @@ void DIALOG_PAD_PROPERTIES::redraw()
m_panelShowPadGal->Refresh();
}
}
else
{
m_panelShowPad->Refresh();