Fixed an assertion in arc drawing tool (GAL).

This commit is contained in:
Chris Pavlina 2015-06-02 20:16:55 +02:00 committed by Maciej Suminski
parent 64e08f9274
commit 064e8a82e1
1 changed files with 1 additions and 2 deletions

View File

@ -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 );