Fixed an assertion in arc drawing tool (GAL).
This commit is contained in:
parent
64e08f9274
commit
064e8a82e1
|
@ -920,9 +920,8 @@ bool DRAWING_TOOL::drawArc( DRAWSEGMENT*& aGraphic )
|
||||||
|
|
||||||
case SET_ANGLE:
|
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->GetArcStart() != aGraphic->GetArcEnd() );
|
||||||
assert( aGraphic->GetWidth() > 0 );
|
assert( aGraphic->GetWidth() > 0 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue