From 10bc96840a02176374e089949b53b670f290cbff Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 4 Oct 2020 11:38:00 +0200 Subject: [PATCH] Fix incorrect test in Page Settings dialog. Fixes #5871 https://gitlab.com/kicad/code/kicad/issues/5871 --- common/dialogs/dialog_page_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/dialogs/dialog_page_settings.cpp b/common/dialogs/dialog_page_settings.cpp index 522b95cb2f..d17b8cc3f8 100644 --- a/common/dialogs/dialog_page_settings.cpp +++ b/common/dialogs/dialog_page_settings.cpp @@ -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() )