fix #0002662 - crash when create ShapeBinder with origin selected
This commit is contained in:
@@ -89,7 +89,7 @@ void ShapeBinder::getFilteredReferences(App::PropertyLinkSubList* prop, Part::Fe
|
||||
|
||||
//we only allow one part feature, so get the first one we find
|
||||
size_t index = 0;
|
||||
while(!objs[index]->isDerivedFrom(Part::Feature::getClassTypeId()) && index < objs.size())
|
||||
while(index < objs.size() && !objs[index]->isDerivedFrom(Part::Feature::getClassTypeId()))
|
||||
index++;
|
||||
|
||||
//do we have any part feature?
|
||||
|
||||
Reference in New Issue
Block a user