Call onEnterState() from base class in SelectBoxState and StandbyState

This commit is contained in:
David Capello 2016-02-18 11:40:11 -03:00
parent 67afc5f621
commit ef4a4822da
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2015 David Capello
// Copyright (C) 2001-2016 David Capello
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -68,6 +68,8 @@ void SelectBoxState::setBoxBounds(const gfx::Rect& box)
void SelectBoxState::onEnterState(Editor* editor)
{
StandbyState::onEnterState(editor);
updateContextBar();
editor->setDecorator(this);

View File

@ -99,6 +99,8 @@ StandbyState::~StandbyState()
void StandbyState::onEnterState(Editor* editor)
{
StateWithWheelBehavior::onEnterState(editor);
editor->setDecorator(m_decorator);
m_pivotVisConn =