Browse Source

Don't assume strings are non-empty (KICAD-PMX).

pull/18/head
Jeff Young 3 months ago
parent
commit
96eb11cb9e
  1. 2
      pcbnew/pcb_dimension.cpp

2
pcbnew/pcb_dimension.cpp

@ -446,7 +446,7 @@ wxString PCB_DIMENSION_BASE::GetValueText() const
{
text.RemoveLast();
if( text.Last() == '.' || text.Last() == sep )
if( text.EndsWith( '.' ) || text.EndsWith( sep ) )
{
text.RemoveLast();
break;

Loading…
Cancel
Save