# HG changeset patch # User Teemu Piippo # Date 1656683203 -10800 # Node ID 2637134bc37cc2924878047863ef0c11be810226 # Parent fab454611f9be97d7cb9fcf03ec7ce30f75e1da8 Fix right click to delete not really working properly Instead of removing the point that had been added, it would remove the point that is being drawn, which would cause it to overwrite the previous point using the new point, causing a bit of a delay diff -r fab454611f9b -r 2637134bc37c src/layers/edittools.cpp --- a/src/layers/edittools.cpp Fri Jul 01 16:45:40 2022 +0300 +++ b/src/layers/edittools.cpp Fri Jul 01 16:46:43 2022 +0300 @@ -283,7 +283,7 @@ void EditTools::removeLastPoint() { if (this->polygon.size() > 1) { - this->polygon.erase(this->polygon.end() - 1); + this->polygon.erase(this->polygon.end() - 2); } }