Naming conventions.

This commit is contained in:
Jeff Young 2021-03-28 17:55:07 +01:00
parent cc43436df8
commit c32932a311
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ SCH_DRAWING_TOOLS::SCH_DRAWING_TOOLS() :
m_lastTextOrientation( LABEL_SPIN_STYLE::LEFT ), m_lastTextOrientation( LABEL_SPIN_STYLE::LEFT ),
m_lastTextBold( false ), m_lastTextBold( false ),
m_lastTextItalic( false ), m_lastTextItalic( false ),
m_inPlaceComponent( false ), m_inPlaceSymbol( false ),
m_inPlaceImage( false ), m_inPlaceImage( false ),
m_inSingleClickPlace( false ), m_inSingleClickPlace( false ),
m_inTwoClickPlace( false ), m_inTwoClickPlace( false ),
@ -91,10 +91,10 @@ int SCH_DRAWING_TOOLS::PlaceSymbol( const TOOL_EVENT& aEvent )
SCHLIB_FILTER filter; SCHLIB_FILTER filter;
std::vector<PICKED_SYMBOL>* historyList = nullptr; std::vector<PICKED_SYMBOL>* historyList = nullptr;
if( m_inPlaceComponent ) if( m_inPlaceSymbol )
return 0; return 0;
else else
m_inPlaceComponent = true; m_inPlaceSymbol = true;
if( aEvent.IsAction( &EE_ACTIONS::placeSymbol ) ) if( aEvent.IsAction( &EE_ACTIONS::placeSymbol ) )
{ {
@ -312,7 +312,7 @@ int SCH_DRAWING_TOOLS::PlaceSymbol( const TOOL_EVENT& aEvent )
} }
m_frame->GetCanvas()->SetCurrentCursor( KICURSOR::ARROW ); m_frame->GetCanvas()->SetCurrentCursor( KICURSOR::ARROW );
m_inPlaceComponent = false; m_inPlaceSymbol = false;
return 0; return 0;
} }

View File

@ -83,7 +83,7 @@ private:
bool m_lastTextItalic; bool m_lastTextItalic;
///< Re-entrancy guards ///< Re-entrancy guards
bool m_inPlaceComponent; bool m_inPlaceSymbol;
bool m_inPlaceImage; bool m_inPlaceImage;
bool m_inSingleClickPlace; bool m_inSingleClickPlace;
bool m_inTwoClickPlace; bool m_inTwoClickPlace;