Fixed a crash when GRLineArray is called with an empty vector.
This commit is contained in:
parent
8c8a1238f1
commit
25d526cbc6
|
@ -428,6 +428,9 @@ void GRMixedLine( EDA_RECT* ClipBox, wxDC* DC, int x1, int y1, int x2, int y2,
|
|||
void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector<wxPoint>& aLines,
|
||||
int aWidth, EDA_COLOR_T aColor )
|
||||
{
|
||||
if( aLines.empty() )
|
||||
return;
|
||||
|
||||
GRSetColorPen( aDC, aColor, aWidth );
|
||||
|
||||
if( aClipBox )
|
||||
|
|
Loading…
Reference in New Issue