Extend boundary size of PCB_VIEW
(cherry picked from commit 156288bfcf
)
This commit is contained in:
parent
bf2e34f32e
commit
ad9f5f4dd7
|
@ -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
|
// 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.
|
// case of the default value is changed. Could be a size depending on the drawing-sheet size.
|
||||||
typedef std::numeric_limits<int> coord_limits;
|
typedef std::numeric_limits<int> coord_limits;
|
||||||
double pos = coord_limits::lowest() / 2 + coord_limits::epsilon();
|
double pos = coord_limits::lowest() + coord_limits::epsilon();
|
||||||
double size = coord_limits::max() - 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.SetOrigin( pos, pos );
|
||||||
m_boundary.SetSize( size, size );
|
m_boundary.SetSize( size, size );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue