# HG changeset patch # User Teemu Piippo # Date 1440898994 -10800 # Node ID 9fa260f4386e2e1a5a7ab5f602a0dcd20ab2ed2e # Parent 737245eee4331d062a62d9840e7d359d9253afe0 Fix crash when using "add borders" with a triangle diff -r 737245eee433 -r 9fa260f4386e src/actionsEdit.cpp --- 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 (tri->vertex (0), tri->vertex (1)); lines[1] = LDSpawn (tri->vertex (1), tri->vertex (2)); lines[2] = LDSpawn (tri->vertex (2), tri->vertex (0)); + lines[3] = nullptr; } for (int i = 0; i < countof (lines); ++i)