delete Layer

delete Layer, delete active Layer, protect against false input
This commit is contained in:
Mienek
2019-12-05 22:16:21 +01:00
parent f2c56c27be
commit 4d5b149f41
19 changed files with 148 additions and 102 deletions

View File

@@ -76,6 +76,11 @@ void PaintingArea::deleteLayer(int index){
}
}
void PaintingArea::deleteActiveLayer(){
this->layerStructure.erase(layerStructure.begin()+activeLayer);
activeLayer--;
}
void PaintingArea::setLayerToActive(int index) {
if(index<layerStructure.size()){
this->activeLayer=index;