Skip to content

Commit fc6f1f4

Browse files
committed
Make sure we re-hide hidden fields
Fields that are forced to be shown need to be re-hidden when the find dialog closes. While they are _also_ brightened, this flag may be cleared by other processes, so we need to test for the forced visibility as well. Fixes https://gitlab.com/kicad/code/kicad/-/issues/20865
1 parent fd36202 commit fc6f1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eeschema/tools/sch_find_replace_tool.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int SCH_FIND_REPLACE_TOOL::UpdateFind( const TOOL_EVENT& aEvent )
5858
m_selectionTool->BrightenItem( aItem );
5959
m_foundItemHighlighted = true;
6060
}
61-
else if( aItem->IsBrightened() )
61+
else if( aItem->IsBrightened() || aItem->IsForceVisible() )
6262
{
6363
aItem->SetForceVisible( false );
6464
m_selectionTool->UnbrightenItem( aItem );

0 commit comments

Comments
 (0)