Fix bug when poping only tool on stack.
This commit is contained in:
parent
5e40de9357
commit
6253b44f20
|
@ -452,10 +452,11 @@ void EDA_DRAW_FRAME::PushTool( const std::string& actionName )
|
||||||
|
|
||||||
void EDA_DRAW_FRAME::PopTool()
|
void EDA_DRAW_FRAME::PopTool()
|
||||||
{
|
{
|
||||||
if( m_toolStack.size() > 1 )
|
if( m_toolStack.size() > 0 )
|
||||||
{
|
|
||||||
m_toolStack.pop_back();
|
m_toolStack.pop_back();
|
||||||
|
|
||||||
|
if( m_toolStack.size() > 0 )
|
||||||
|
{
|
||||||
TOOL_ACTION* action = m_toolManager->GetActionManager()->FindAction( m_toolStack.back() );
|
TOOL_ACTION* action = m_toolManager->GetActionManager()->FindAction( m_toolStack.back() );
|
||||||
|
|
||||||
if( action )
|
if( action )
|
||||||
|
|
Loading…
Reference in New Issue