eeschema: Rename shadowing var
This commit is contained in:
parent
eae0c142fe
commit
21c752fa0b
|
@ -294,23 +294,23 @@ void DIALOG_SCH_EDIT_ONE_FIELD::onScintillaCharAdded( wxStyledTextEvent &aEvent
|
||||||
wxString partial;
|
wxString partial;
|
||||||
|
|
||||||
auto textVarRef =
|
auto textVarRef =
|
||||||
[&]( int pos )
|
[&]( int pt )
|
||||||
{
|
{
|
||||||
return pos >= 2
|
return pt >= 2
|
||||||
&& m_StyledTextCtrl->GetCharAt( pos-2 ) == '$'
|
&& m_StyledTextCtrl->GetCharAt( pt - 2 ) == '$'
|
||||||
&& m_StyledTextCtrl->GetCharAt( pos-1 ) == '{';
|
&& m_StyledTextCtrl->GetCharAt( pt - 1 ) == '{';
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check for cross-reference
|
// Check for cross-reference
|
||||||
if( start > 1 && m_StyledTextCtrl->GetCharAt( start-1 ) == ':' )
|
if( start > 1 && m_StyledTextCtrl->GetCharAt( start - 1 ) == ':' )
|
||||||
{
|
{
|
||||||
int refStart = m_StyledTextCtrl->WordStartPosition( start-1, true );
|
int refStart = m_StyledTextCtrl->WordStartPosition( start - 1, true );
|
||||||
|
|
||||||
if( textVarRef( refStart ) )
|
if( textVarRef( refStart ) )
|
||||||
{
|
{
|
||||||
partial = m_StyledTextCtrl->GetRange( start, pos );
|
partial = m_StyledTextCtrl->GetRange( start, pos );
|
||||||
|
|
||||||
wxString ref = m_StyledTextCtrl->GetRange( refStart, start-1 );
|
wxString ref = m_StyledTextCtrl->GetRange( refStart, start - 1 );
|
||||||
SCH_SHEET_LIST sheets = editFrame->Schematic().GetSheets();
|
SCH_SHEET_LIST sheets = editFrame->Schematic().GetSheets();
|
||||||
SCH_REFERENCE_LIST refs;
|
SCH_REFERENCE_LIST refs;
|
||||||
SCH_COMPONENT* refComponent = nullptr;
|
SCH_COMPONENT* refComponent = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue