Fix incorrect test in Page Settings dialog.

Fixes #5871
https://gitlab.com/kicad/code/kicad/issues/5871
This commit is contained in:
jean-pierre charras 2020-10-04 11:38:00 +02:00
parent ba8b8d2738
commit 10bc96840a
1 changed files with 2 additions and 2 deletions

View File

@ -255,10 +255,10 @@ void DIALOG_PAGES_SETTINGS::initDialog()
void DIALOG_PAGES_SETTINGS::OnOkClick( wxCommandEvent& event )
{
if( !m_customSizeX.Validate( MIN_PAGE_SIZE_MILS, m_maxPageSizeMils.x, EDA_UNITS::INCHES ) )
if( !m_customSizeX.Validate( MIN_PAGE_SIZE_MILS, m_maxPageSizeMils.x, EDA_UNITS::MILS ) )
return;
if( !m_customSizeY.Validate( MIN_PAGE_SIZE_MILS, m_maxPageSizeMils.y, EDA_UNITS::INCHES ) )
if( !m_customSizeY.Validate( MIN_PAGE_SIZE_MILS, m_maxPageSizeMils.y, EDA_UNITS::MILS ) )
return;
if( SavePageSettings() )