src/tools/drawtool.cpp

changeset 123
e3fe3617b631
parent 122
b54b350dff5d
child 124
f9f308c8e0c5
equal deleted inserted replaced
122:b54b350dff5d 123:e3fe3617b631
84 { 84 {
85 this->previewPolygon.resize(this->polygon.size() + 1); 85 this->previewPolygon.resize(this->polygon.size() + 1);
86 this->previewPolygon.back() = this->previewPoint; 86 this->previewPolygon.back() = this->previewPoint;
87 if (this->previewPolygon.size() > 2) 87 if (this->previewPolygon.size() > 2)
88 { 88 {
89 this->isconcave = not geom::convex(this->previewPolygon); 89 this->isconcave = not geom::isConvex(this->previewPolygon);
90 } 90 }
91 } 91 }
92 92
93 void DrawTool::reset() 93 void DrawTool::reset()
94 { 94 {

mercurial