Allow users to specify no minimum text width in DRC

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16596
This commit is contained in:
Seth Hillbrand 2024-01-16 16:23:35 -08:00
parent 322ad1af45
commit 121271bd0a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ bool DRC_TEST_PROVIDER_TEXT_DIMS::Run()
if( font->IsOutline() )
{
if( !constraint.Value().HasMin() )
if( !constraint.Value().HasMin() || constraint.Value().Min() <= 0 )
return true;
auto* glyphs = text->GetRenderCache( font, text->GetShownText( true ) );