diff --git a/src/LayerComposition.cpp b/src/LayerComposition.cpp index f98e923..2c66a5d 100644 --- a/src/LayerComposition.cpp +++ b/src/LayerComposition.cpp @@ -165,6 +165,7 @@ void LayerComposition::removeLayer(const LayerID & id){ it.second->abandonChild(layer); } layers.erase(id); + Layer::n_layers--; } const unordered_map > & LayerComposition::getLayers(){