Sun, 30 Aug 2015 04:43:14 +0300
Fix crash when using "add borders" with a triangle
src/actionsEdit.cpp | file | annotate | diff | comparison | revisions |
--- a/src/actionsEdit.cpp Sun Aug 30 04:41:54 2015 +0300 +++ b/src/actionsEdit.cpp Sun Aug 30 04:43:14 2015 +0300 @@ -274,6 +274,7 @@ lines[0] = LDSpawn<LDLine> (tri->vertex (0), tri->vertex (1)); lines[1] = LDSpawn<LDLine> (tri->vertex (1), tri->vertex (2)); lines[2] = LDSpawn<LDLine> (tri->vertex (2), tri->vertex (0)); + lines[3] = nullptr; } for (int i = 0; i < countof (lines); ++i)