Pcbnew: Block selection enhancement, from Bug #593997 (whishlist)
1. block created from-left-to-right selects only 100%inside selection objects (as it now does) 2.block created from-right-to-left selects all overlapping objects inside selection From the patch sent by mathieulj (mathieulj), and some fixes and code cleaning.
This commit is contained in:
+3
-10
@@ -582,14 +582,7 @@ int CPolyLine::GetEndContour( int ic )
|
||||
}
|
||||
|
||||
|
||||
CRect CPolyLine::GetBounds()
|
||||
{
|
||||
CRect r = GetCornerBounds();
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
CRect CPolyLine::GetCornerBounds()
|
||||
CRect CPolyLine::GetBoundingBox()
|
||||
{
|
||||
CRect r;
|
||||
|
||||
@@ -608,7 +601,7 @@ CRect CPolyLine::GetCornerBounds()
|
||||
}
|
||||
|
||||
|
||||
CRect CPolyLine::GetCornerBounds( int icont )
|
||||
CRect CPolyLine::GetBoundingBox( int icont )
|
||||
{
|
||||
CRect r;
|
||||
|
||||
@@ -1381,7 +1374,7 @@ bool CPolyLine::IsPolygonSelfIntersecting()
|
||||
cr.reserve( n_cont );
|
||||
|
||||
for( int icont = 0; icont<n_cont; icont++ )
|
||||
cr.push_back( GetCornerBounds( icont ) );
|
||||
cr.push_back( GetBoundingBox( icont ) );
|
||||
|
||||
for( int icont = 0; icont<n_cont; icont++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user