--- a/src/ldObject.cc Mon Jun 16 18:31:13 2014 +0300 +++ b/src/ldObject.cc Sun Jun 22 03:55:56 2014 +0300 @@ -406,7 +406,7 @@ LDPolygon* data = new LDPolygon; data->id = id(); data->num = num; - data->color = color()->index(); + data->color = color().index(); for (int i = 0; i < data->numVertices(); ++i) data->vertices[i] = vertex (i);