From 064e8a82e1f17433c00f0537f348cf285bc67cbd Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 2 Jun 2015 20:16:55 +0200 Subject: [PATCH] Fixed an assertion in arc drawing tool (GAL). --- pcbnew/tools/drawing_tool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index adb005e00f..d9afe582f4 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -920,9 +920,8 @@ bool DRAWING_TOOL::drawArc( DRAWSEGMENT*& aGraphic ) case SET_ANGLE: { - if( wxPoint( cursorPos.x, cursorPos.y ) != aGraphic->GetArcStart() ) + if( wxPoint( cursorPos.x, cursorPos.y ) != aGraphic->GetArcStart() && aGraphic->GetAngle() != 0 ) { - assert( aGraphic->GetAngle() != 0 ); assert( aGraphic->GetArcStart() != aGraphic->GetArcEnd() ); assert( aGraphic->GetWidth() > 0 );