diff --git a/src/doc/cel_list.h b/src/doc/cel_list.h index 174e3967c..993cab1ec 100644 --- a/src/doc/cel_list.h +++ b/src/doc/cel_list.h @@ -1,5 +1,5 @@ // Aseprite Document Library -// Copyright (c) 2001-2014 David Capello +// Copyright (c) 2001-2015 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. @@ -8,15 +8,15 @@ #define DOC_CEL_LIST_H_INCLUDED #pragma once -#include +#include namespace doc { class Cel; - typedef std::list CelList; - typedef std::list::iterator CelIterator; - typedef std::list::const_iterator CelConstIterator; + typedef std::vector CelList; + typedef CelList::iterator CelIterator; + typedef CelList::const_iterator CelConstIterator; } // namespace doc diff --git a/src/doc/layer.cpp b/src/doc/layer.cpp index ef09f7052..4d574bc31 100644 --- a/src/doc/layer.cpp +++ b/src/doc/layer.cpp @@ -316,7 +316,7 @@ void LayerFolder::stackLayer(Layer* layer, Layer* after) m_layers.insert(after_it, layer); } else - m_layers.push_front(layer); + m_layers.insert(m_layers.begin(), layer); } void LayerFolder::displaceFrames(frame_t fromThis, frame_t delta) diff --git a/src/doc/layer_list.h b/src/doc/layer_list.h index 941a4537e..82aaa5790 100644 --- a/src/doc/layer_list.h +++ b/src/doc/layer_list.h @@ -1,5 +1,5 @@ // Aseprite Document Library -// Copyright (c) 2001-2014 David Capello +// Copyright (c) 2001-2015 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. @@ -8,15 +8,15 @@ #define DOC_LAYER_LIST_H_INCLUDED #pragma once -#include +#include namespace doc { class Layer; - typedef std::list LayerList; - typedef std::list::iterator LayerIterator; - typedef std::list::const_iterator LayerConstIterator; + typedef std::vector LayerList; + typedef LayerList::iterator LayerIterator; + typedef LayerList::const_iterator LayerConstIterator; } // namespace doc