Browse Source

Eeschema: DIALOG_FIELDS_EDITOR_GLOBAL: fix missing clearing old highlight when highlighting a new symbol or exiting the dialog

pull/13/head
jean-pierre charras 7 years ago
parent
commit
1ca3b2c768
  1. 8
      eeschema/dialogs/dialog_fields_editor_global.cpp
  2. 1072
      eeschema/dialogs/dialog_fields_editor_global_base.fbp

8
eeschema/dialogs/dialog_fields_editor_global.cpp

@ -33,6 +33,7 @@
#include <kicad_string.h>
#include <build_version.h>
#include <general.h>
#include <sch_view.h>
#include <class_library.h>
#include <sch_edit_frame.h>
#include <sch_reference_list.h>
@ -770,6 +771,10 @@ DIALOG_FIELDS_EDITOR_GLOBAL::~DIALOG_FIELDS_EDITOR_GLOBAL()
m_grid->PopEventHandler( true );
// we gave ownership of m_dataModel to the wxGrid...
// Clear highligted symbols, if any
m_parent->GetCanvas()->GetView()->HighlightItem( nullptr, nullptr );
m_parent->GetCanvas()->Refresh();
}
@ -972,6 +977,9 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::OnTableCellClick( wxGridEvent& event )
{
if( event.GetCol() == REFERENCE )
{
// Clear highligted symbols, if any
m_parent->GetCanvas()->GetView()->HighlightItem( nullptr, nullptr );
m_dataModel->ExpandCollapseRow( event.GetRow() );
std::vector<SCH_REFERENCE> refs = m_dataModel->GetRowReferences( event.GetRow() );

1072
eeschema/dialogs/dialog_fields_editor_global_base.fbp
File diff suppressed because it is too large
View File

Loading…
Cancel
Save