diff --git a/eeschema/dialogs/dialog_edit_label.cpp b/eeschema/dialogs/dialog_edit_label.cpp index dce7b716f0..090d911e08 100644 --- a/eeschema/dialogs/dialog_edit_label.cpp +++ b/eeschema/dialogs/dialog_edit_label.cpp @@ -111,9 +111,10 @@ DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR( SCH_EDIT_FRAME* aParent, SCH_TEXT* aTe m_CurrentText = aTextItem; InitDialog(); - // Conservative limits 0.01 to 10.0 inches - int minSize = 10 * IU_PER_MILS; - int maxSize = 10 * 1000 * IU_PER_MILS; + // Conservative limits 0.0 to 10.0 inches + const int minSize = 0; // a value like 0.01 is better, but if > 0, creates + // annoying issues when trying to enter a value starting by 0 or .0 + const int maxSize = 10 * 1000 * IU_PER_MILS; wxFloatingPointValidator textSizeValidator( NULL, wxNUM_VAL_NO_TRAILING_ZEROES ); textSizeValidator.SetPrecision( 4 );