Fixed bug: When moving vertices in the input area while a color mapping exists, we have a null pointer and it crashes.

This commit is contained in:
Tats
2014-05-03 12:51:50 -04:00
parent 0e582f87ba
commit ded32de4c1
+1 -1
View File
@@ -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++)
{