Fix typo.

This commit is contained in:
Jeff Young 2022-04-12 19:18:15 +01:00
parent 576f3dc2fd
commit 306dfef7e5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ EDA_ITEM* EE_SELECTION::GetTopLeftItem( bool onlyModules ) const
{ {
VECTOR2I pos = aItem->GetPosition(); VECTOR2I pos = aItem->GetPosition();
if( ( aCurrent == nullptr ) if( ( *aCurrent == nullptr )
|| ( pos.x < aCurrentPos->x ) || ( pos.x < aCurrentPos->x )
|| ( pos.x == aCurrentPos->x && pos.y < aCurrentPos->y ) ) || ( pos.x == aCurrentPos->x && pos.y < aCurrentPos->y ) )
{ {