From 3759184588926dcdbd4acb5e8496416c02dd3082 Mon Sep 17 00:00:00 2001 From: baydam Date: Fri, 13 May 2016 13:08:01 +0000 Subject: [PATCH] Small fix: Switch between vertex with Shift+Space keys --- MapperGLCanvas.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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