diff --git a/pcbnew/dialogs/dialog_find.cpp b/pcbnew/dialogs/dialog_find.cpp index 3c4ef5f148..2c440e44df 100644 --- a/pcbnew/dialogs/dialog_find.cpp +++ b/pcbnew/dialogs/dialog_find.cpp @@ -151,7 +151,7 @@ void DIALOG_FIND::onButtonFindItemClick( wxCommandEvent& aEvent ) for( BOARD_ITEM* item : parent->GetBoard()->Drawings() ) { - if( item->Type() != PCB_MODULE_TEXT_T ) + if( item->Type() != PCB_TEXT_T ) continue; TEXTE_PCB* textItem = static_cast( item );