Commit 4f01bedf authored by jean-pierre charras's avatar jean-pierre charras

Eeschema: fix a bug that crashes eeschema (only when compiled in debug mode)...

Eeschema: fix a bug that crashes eeschema (only when compiled in debug mode) when creating a new wire, and when any wire orientation is allowed.
parent 9e20800f
......@@ -167,7 +167,8 @@ void SCH_EDIT_FRAME::BeginSegment( wxDC* DC, int type )
{
SCH_LINE* prevSegment = (SCH_LINE*) segment->Back();
wxLogDebug( wxT( "Adding new segment after " ) + prevSegment->GetSelectMenuText() );
// Be aware prevSegment can be null when the horizontal and vertical lines only switch is off
// when we create the first segment.
if( !g_HVLines )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment