diff --git a/MapperGLCanvas.cpp b/MapperGLCanvas.cpp index 9157365..08a0b1b 100644 --- a/MapperGLCanvas.cpp +++ b/MapperGLCanvas.cpp @@ -436,10 +436,7 @@ void MapperGLCanvas::keyPressEvent(QKeyEvent* event) // SHIFT+Space to switch between vertex else if (event->key() == Qt::Key_Space) { - if (shape) - { - _activeVertex = (_activeVertex + 1) % shape->nVertices(); - } + _activeVertex = (_activeVertex + 1) % shape->nVertices(); pos = shape->getVertex(_activeVertex).toPoint(); // reset to new vertex } else