decrease layer count when removing layer
This commit is contained in:
parent
52086dbcd9
commit
28d6a59ef2
1 changed files with 1 additions and 0 deletions
|
@ -165,6 +165,7 @@ void LayerComposition::removeLayer(const LayerID & id){
|
||||||
it.second->abandonChild(layer);
|
it.second->abandonChild(layer);
|
||||||
}
|
}
|
||||||
layers.erase(id);
|
layers.erase(id);
|
||||||
|
Layer::n_layers--;
|
||||||
}
|
}
|
||||||
|
|
||||||
const unordered_map <LayerID, shared_ptr <Layer> > & LayerComposition::getLayers(){
|
const unordered_map <LayerID, shared_ptr <Layer> > & LayerComposition::getLayers(){
|
||||||
|
|
Loading…
Reference in a new issue