decrease layer count when removing layer

This commit is contained in:
jrkb 2023-05-05 15:01:52 +02:00
parent 52086dbcd9
commit 28d6a59ef2

View file

@ -165,6 +165,7 @@ void LayerComposition::removeLayer(const LayerID & id){
it.second->abandonChild(layer);
}
layers.erase(id);
Layer::n_layers--;
}
const unordered_map <LayerID, shared_ptr <Layer> > & LayerComposition::getLayers(){