diff --git a/gerbview/gerbview_frame.h b/gerbview/gerbview_frame.h index e26780af8f..acb489d8d4 100644 --- a/gerbview/gerbview_frame.h +++ b/gerbview/gerbview_frame.h @@ -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;