mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
first fix
history works again, can load deleted layer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
history tool doesnt load polygon data on undo iff project was loaded
|
||||
history tool doesnt save delete Layer
|
||||
history tool doesnt save delete Layer - done
|
||||
Gradient breaks Heap Size, when big Witdh and Height (appeared on 1280x720)
|
||||
Heap block at 0000000025422990 modified at 0000000025422A28 past requested size of 88
|
||||
@@ -158,6 +158,7 @@ void IntelliPhotoGui::slotDeleteLayer(){
|
||||
// Create New Layer
|
||||
if(ok1) {
|
||||
paintingArea->deleteLayer(layerNumber - 1);
|
||||
paintingArea->historyadd();
|
||||
UpdateGui();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -524,6 +524,10 @@ void PaintingArea::historyGoBack(){
|
||||
if (historyPresent != historyMaxPast) {
|
||||
if (--historyPresent == -1)
|
||||
historyPresent = 99;
|
||||
if (layerBundle.size() > history[static_cast<size_t>(historyPresent)].size())
|
||||
activeLayer--;
|
||||
if ((layerBundle.size() == 0) && (layerBundle.size() < history[static_cast<size_t>(historyPresent)].size()))
|
||||
activeLayer++;
|
||||
layerBundle = history[static_cast<size_t>(historyPresent)];
|
||||
}
|
||||
this->guiReference->UpdateGui();
|
||||
@@ -533,6 +537,10 @@ void PaintingArea::historyGoForward(){
|
||||
if (historyPresent != historyMaxFuture) {
|
||||
if (++historyPresent == 100)
|
||||
historyPresent = 0;
|
||||
if (layerBundle.size() > history[static_cast<size_t>(historyPresent)].size())
|
||||
activeLayer--;
|
||||
if ((layerBundle.size() == 0) && (layerBundle.size() < history[static_cast<size_t>(historyPresent)].size()))
|
||||
activeLayer++;
|
||||
layerBundle = history[static_cast<size_t>(historyPresent)];
|
||||
}
|
||||
this->guiReference->UpdateGui();
|
||||
|
||||
Reference in New Issue
Block a user