diff --git a/src/app/cmd/flatten_layers.cpp b/src/app/cmd/flatten_layers.cpp index 4b6bea806..a634598a0 100644 --- a/src/app/cmd/flatten_layers.cpp +++ b/src/app/cmd/flatten_layers.cpp @@ -92,7 +92,7 @@ void FlattenLayers::onExecute() } // Delete old layers. - LayerList layers = sprite->root()->getLayersList(); + LayerList layers = sprite->root()->layers(); for (Layer* layer : layers) if (layer != flatLayer) executeAndAdd(new cmd::RemoveLayer(layer)); diff --git a/src/app/commands/cmd_import_sprite_sheet.cpp b/src/app/commands/cmd_import_sprite_sheet.cpp index 873b41b8d..5b49388ab 100644 --- a/src/app/commands/cmd_import_sprite_sheet.cpp +++ b/src/app/commands/cmd_import_sprite_sheet.cpp @@ -391,7 +391,7 @@ void ImportSpriteSheetCommand::onExecute(Context* context) } // Copy the list of layers (because we will modify it in the iteration). - LayerList layers = sprite->root()->getLayersList(); + LayerList layers = sprite->root()->layers(); // Remove all other layers for (LayerIterator it=layers.begin(), end=layers.end(); it!=end; ++it) { diff --git a/src/doc/layer.h b/src/doc/layer.h index 36c9564f3..df713fe69 100644 --- a/src/doc/layer.h +++ b/src/doc/layer.h @@ -167,7 +167,7 @@ namespace doc { virtual int getMemSize() const override; - const LayerList& getLayersList() { return m_layers; } + const LayerList& layers() { return m_layers; } LayerIterator getLayerBegin() { return m_layers.begin(); } LayerIterator getLayerEnd() { return m_layers.end(); } LayerConstIterator getLayerBegin() const { return m_layers.begin(); }