From d47cac12c342177850c455d8f2cb7c83f4ef1f10 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 31 May 2019 20:59:08 -0400 Subject: [PATCH] Fix GerbView zoom-to-fit --- gerbview/gerbview_frame.h | 6 ++++++ 1 file changed, 6 insertions(+) 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;