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

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

parent f51ad438
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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();