From ded32de4c19abd490365bd3cd9f24936726fb50c Mon Sep 17 00:00:00 2001 From: Tats Date: Sat, 3 May 2014 12:51:50 -0400 Subject: [PATCH] Fixed bug: When moving vertices in the input area while a color mapping exists, we have a null pointer and it crashes. --- MapperGLCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MapperGLCanvas.cpp b/MapperGLCanvas.cpp index b9fb1f9..9c4b31d 100644 --- a/MapperGLCanvas.cpp +++ b/MapperGLCanvas.cpp @@ -253,7 +253,7 @@ void MapperGLCanvas::glueVertex(Shape *orig, QPointF *p) for (int i = 0; i < manager.nMappings(); i++) { Shape *shape = getShapeFromMappingId(manager.getMapping(i)->getId()); - if (shape != orig) + if (shape && shape != orig) { for (int vertex = 0; vertex < shape->nVertices(); vertex++) {