Coverity fix.
This commit is contained in:
parent
fe4fd19c66
commit
5bfa06bb1c
|
@ -287,7 +287,7 @@ DIALOG_SCH_EDIT_ONE_FIELD::DIALOG_SCH_EDIT_ONE_FIELD( SCH_BASE_FRAME* aParent,
|
||||||
|
|
||||||
void DIALOG_SCH_EDIT_ONE_FIELD::onScintillaCharAdded( wxStyledTextEvent &aEvent )
|
void DIALOG_SCH_EDIT_ONE_FIELD::onScintillaCharAdded( wxStyledTextEvent &aEvent )
|
||||||
{
|
{
|
||||||
SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( GetParent() );
|
SCH_EDIT_FRAME* editFrame = static_cast<SCH_EDIT_FRAME*>( GetParent() );
|
||||||
wxArrayString autocompleteTokens;
|
wxArrayString autocompleteTokens;
|
||||||
int pos = m_StyledTextCtrl->GetCurrentPos();
|
int pos = m_StyledTextCtrl->GetCurrentPos();
|
||||||
int start = m_StyledTextCtrl->WordStartPosition( pos, true );
|
int start = m_StyledTextCtrl->WordStartPosition( pos, true );
|
||||||
|
|
Loading…
Reference in New Issue