Iterator safety.

(cherry picked from commit 5117ecdf3d)
This commit is contained in:
Jeff Young
2025-07-08 08:44:21 +01:00
parent b682b39180
commit 573e36b2d3
+1 -1
View File
@@ -398,7 +398,7 @@ void DIALOG_FIND::search( bool aDirection )
m_status->SetLabel( msg );
}
else if( endIsReached )
else if( endIsReached || m_it == m_hitList.end() )
{
m_frame->SetStatusText( wxEmptyString );
m_frame->ShowInfoBarMsg( _( "No more items to show" ) );