src/linetypes/conditionaledge.cpp

changeset 1186
eae8b3bce545
parent 1141
7dc2c981937e
child 1187
46dc716238fd
equal deleted inserted replaced
1185:c2e0db52ea07 1186:eae8b3bce545
52 52
53 LDEdgeLine* LDConditionalEdge::becomeEdgeLine() 53 LDEdgeLine* LDConditionalEdge::becomeEdgeLine()
54 { 54 {
55 LDEdgeLine* replacement = model()->emplaceReplacement<LDEdgeLine>(this); 55 LDEdgeLine* replacement = model()->emplaceReplacement<LDEdgeLine>(this);
56 56
57 for (int i = 0; i < replacement->numVertices(); ++i) 57 if (replacement)
58 replacement->setVertex (i, vertex (i)); 58 {
59 for (int i = 0; i < replacement->numVertices(); ++i)
60 replacement->setVertex (i, vertex (i));
59 61
60 replacement->setColor (color()); 62 replacement->setColor (color());
63 }
64
61 return replacement; 65 return replacement;
62 } 66 }

mercurial