Fix for 'fit to page' scaled printouts

This commit is contained in:
Maciej Suminski 2018-09-28 17:45:47 +02:00
parent 698a380827
commit 3e5ee254cf
1 changed files with 3 additions and 1 deletions

View File

@ -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 )
{