STEP export: fix crash when a rectangle is used in a footprint.
Fixes #6958 https://gitlab.com/kicad/code/kicad/issues/6958
This commit is contained in:
parent
fb7ef57d38
commit
cdd4953589
|
@ -156,7 +156,7 @@ bool KICADFOOTPRINT::Read( SEXPR::SEXPR* aEntry )
|
|||
|
||||
bool KICADFOOTPRINT::parseRect( SEXPR::SEXPR* data )
|
||||
{
|
||||
std::unique_ptr<KICADCURVE> rect;
|
||||
std::unique_ptr<KICADCURVE> rect = std::make_unique<KICADCURVE>();
|
||||
|
||||
if( !rect->Read( data, CURVE_LINE ) )
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue