From 28d6a59ef2d3c935ad0c3e68c8da7f28f67ae42a Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Fri, 5 May 2023 15:01:52 +0200 Subject: [PATCH] decrease layer count when removing layer --- src/LayerComposition.cpp | 1 + 1 file changed, 1 insertion(+) 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(){