Extend boundary size of PCB_VIEW

This commit is contained in:
Josue Huaroto 2023-08-29 19:41:36 +00:00 committed by Seth Hillbrand
parent 86f96d544b
commit 156288bfcf
1 changed files with 3 additions and 2 deletions

View File

@ -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<int> 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<double>( coord_limits::max() - coord_limits::epsilon() )
- static_cast<double>( coord_limits::min() + coord_limits::epsilon() );
m_boundary.SetOrigin( pos, pos );
m_boundary.SetSize( size, size );
}