Fix incorrect test in Page Settings dialog.
Fixes #5871 https://gitlab.com/kicad/code/kicad/issues/5871
This commit is contained in:
parent
ba8b8d2738
commit
10bc96840a
|
@ -255,10 +255,10 @@ void DIALOG_PAGES_SETTINGS::initDialog()
|
||||||
|
|
||||||
void DIALOG_PAGES_SETTINGS::OnOkClick( wxCommandEvent& event )
|
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;
|
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;
|
return;
|
||||||
|
|
||||||
if( SavePageSettings() )
|
if( SavePageSettings() )
|
||||||
|
|
Loading…
Reference in New Issue