fix a compil warning
This commit is contained in:
parent
7f34586c7e
commit
fd4cd17f4f
|
@ -212,7 +212,6 @@ int EE_INSPECTION_TOOL::CheckSymbol( const TOOL_EVENT& aEvent )
|
||||||
if( !symbol )
|
if( !symbol )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
EDA_UNITS units = m_frame->GetUserUnits();
|
|
||||||
std::vector<wxString> messages;
|
std::vector<wxString> messages;
|
||||||
const int grid_size = KiROUND( getView()->GetGAL()->GetGridSize().x );
|
const int grid_size = KiROUND( getView()->GetGAL()->GetGridSize().x );
|
||||||
|
|
||||||
|
|
|
@ -231,13 +231,13 @@ bool EE_SELECTION_TOOL::Init()
|
||||||
if ( !m_isSymbolEditor )
|
if ( !m_isSymbolEditor )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SYMBOL_EDIT_FRAME* symbolEditorFrame = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame );
|
SYMBOL_EDIT_FRAME* symbEditorFrame = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame );
|
||||||
|
|
||||||
return symbolEditorFrame
|
return symbEditorFrame
|
||||||
&& symbolEditorFrame->GetCurSymbol()
|
&& symbEditorFrame->GetCurSymbol()
|
||||||
&& symbolEditorFrame->GetCurSymbol()->IsMulti()
|
&& symbEditorFrame->GetCurSymbol()->IsMulti()
|
||||||
&& symbolEditorFrame->IsSymbolEditable()
|
&& symbEditorFrame->IsSymbolEditable()
|
||||||
&& !symbolEditorFrame->IsSymbolAlias();
|
&& !symbEditorFrame->IsSymbolAlias();
|
||||||
};
|
};
|
||||||
|
|
||||||
auto& menu = m_menu.GetMenu();
|
auto& menu = m_menu.GetMenu();
|
||||||
|
|
Loading…
Reference in New Issue