Sketcher: Bug fix SolverGeometryExtension
========================================= Index access at zero size vector cause due to incorrect check.
This commit is contained in:
@@ -102,7 +102,7 @@ public:
|
||||
void setStatus(ParameterStatus status) { std::fill(pstatus.begin(), pstatus.end(), status);}
|
||||
|
||||
void setStatus(int index, ParameterStatus status) {
|
||||
if(index > int(pstatus.size()))
|
||||
if(index >= int(pstatus.size()))
|
||||
pstatus.resize(index+1,ParameterStatus::Dependent);
|
||||
|
||||
pstatus.at(index) = status;
|
||||
|
||||
Reference in New Issue
Block a user