Fix GerbView zoom-to-fit

This commit is contained in:
Jon Evans 2019-05-31 20:59:08 -04:00
parent 69e60d3982
commit d47cac12c3
1 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,12 @@ public:
///> @copydoc EDA_DRAW_FRAME::SetGridColor()
virtual void SetGridColor( COLOR4D aColor ) override;
const BOX2I GetDocumentExtents() const override
{
wxASSERT( m_gerberLayout );
return m_gerberLayout->ViewBBox();
}
protected:
GERBER_LAYER_WIDGET* m_LayersManager;