mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
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:
+1
-1
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user