Don't allow degenerate arcs & circles. Trouble will follow.
This commit is contained in:
parent
45ca0a5ab8
commit
cfa407616f
|
@ -149,7 +149,9 @@ public:
|
|||
int GetRadius() const
|
||||
{
|
||||
double radius = GetLineLength( m_Start, m_End );
|
||||
return KiROUND( radius );
|
||||
|
||||
// don't allow degenerate arcs
|
||||
return std::max( 1, KiROUND( radius ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue