Commit 6ba14100 authored by Maciej Suminski's avatar Maciej Suminski

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

parent f51ad438
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment