Fix for 'fit to page' scaled printouts
This commit is contained in:
parent
698a380827
commit
3e5ee254cf
|
@ -144,7 +144,9 @@ void BOARD_PRINTOUT::DrawPage( const wxString& aLayerName, int aPageNum, int aPa
|
|||
if( m_PrintParams.m_PrintScale == 0.0 )
|
||||
{
|
||||
// Fit to page
|
||||
scale = m_sheetSize.GetWidth() / bBox.GetWidth();
|
||||
double scaleX = m_sheetSize.GetWidth() / bBox.GetWidth();
|
||||
double scaleY = m_sheetSize.GetHeight() / bBox.GetHeight();
|
||||
scale = std::min( scaleX, scaleY );
|
||||
}
|
||||
else if( m_PrintParams.m_PrintScale == 1.0 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue