src/layers/edittools.cpp

changeset 312
2637134bc37c
parent 311
fab454611f9b
child 314
4642ba1218e8
equal deleted inserted replaced
311:fab454611f9b 312:2637134bc37c
281 } 281 }
282 282
283 void EditTools::removeLastPoint() 283 void EditTools::removeLastPoint()
284 { 284 {
285 if (this->polygon.size() > 1) { 285 if (this->polygon.size() > 1) {
286 this->polygon.erase(this->polygon.end() - 1); 286 this->polygon.erase(this->polygon.end() - 2);
287 } 287 }
288 } 288 }
289 289
290 bool EditTools::isCloseToExistingPoints() const 290 bool EditTools::isCloseToExistingPoints() const
291 { 291 {

mercurial