diff --git a/pcbnew/widgets/search_handlers.cpp b/pcbnew/widgets/search_handlers.cpp index 54dab3319d..32abfe32e0 100644 --- a/pcbnew/widgets/search_handlers.cpp +++ b/pcbnew/widgets/search_handlers.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -243,6 +244,8 @@ wxString TEXT_SEARCH_HANDLER::getResultCell( BOARD_ITEM* aItem, int aCol ) return _( "Text" ); else if( PCB_TEXTBOX::ClassOf( aItem ) ) return _( "Textbox" ); + else if( dynamic_cast( aItem ) ) + return _( "Dimension" ); } else if( aCol == 1 ) { @@ -250,6 +253,8 @@ wxString TEXT_SEARCH_HANDLER::getResultCell( BOARD_ITEM* aItem, int aCol ) return UnescapeString( static_cast( aItem )->GetText() ); else if( PCB_TEXTBOX::ClassOf( aItem ) ) return UnescapeString( static_cast( aItem )->GetText() ); + else if( PCB_DIMENSION_BASE* dimension = dynamic_cast( aItem ) ) + return UnescapeString( dimension->GetText() ); } else if( aCol == 2 ) return aItem->GetLayerName();