From ad9f5f4dd7457cd28b0688201f3100fc94ffc8e6 Mon Sep 17 00:00:00 2001 From: Josue Huaroto Date: Tue, 29 Aug 2023 19:41:36 +0000 Subject: [PATCH] Extend boundary size of PCB_VIEW (cherry picked from commit 156288bfcff5f00c658af5386d720abfb3928fae) --- pcbnew/pcb_view.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_view.cpp b/pcbnew/pcb_view.cpp index 7dc83e4505..2acbc79173 100644 --- a/pcbnew/pcb_view.cpp +++ b/pcbnew/pcb_view.cpp @@ -43,8 +43,9 @@ PCB_VIEW::PCB_VIEW( bool aIsDynamic ) : // However, ensure this area has the right size (max size allowed by integer coordinates) in // case of the default value is changed. Could be a size depending on the drawing-sheet size. typedef std::numeric_limits coord_limits; - double pos = coord_limits::lowest() / 2 + coord_limits::epsilon(); - double size = coord_limits::max() - coord_limits::epsilon(); + double pos = coord_limits::lowest() + coord_limits::epsilon(); + double size = static_cast( coord_limits::max() - coord_limits::epsilon() ) + - static_cast( coord_limits::min() + coord_limits::epsilon() ); m_boundary.SetOrigin( pos, pos ); m_boundary.SetSize( size, size ); }