Fixed vanishing pads issue in the pad properties dialog (GAL).
This commit is contained in:
parent
f51ad438b3
commit
6ba1410054
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue