mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 12:20:32 +02:00
delete Layer
delete Layer, delete active Layer, protect against false input
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user