Handle zero-length lines in log viewer
This commit is contained in:
parent
185016b84b
commit
af8deff063
|
@ -65,8 +65,8 @@ void PNS_LOG_VIEWER_OVERLAY::AnnotatedPolyline( const SHAPE_LINE_CHAIN& aL, std:
|
||||||
{
|
{
|
||||||
Polyline( aL );
|
Polyline( aL );
|
||||||
|
|
||||||
if( name.length() > 0 )
|
if( name.length() > 0 && aL.PointCount() > 0 )
|
||||||
m_labelMgr->Add( aL.CPoint(-1), name, GetStrokeColor() );
|
m_labelMgr->Add( aL.CPoint( -1 ), name, GetStrokeColor() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue