fix #0002662 - crash when create ShapeBinder with origin selected

This commit is contained in:
Sergo
2016-12-01 23:50:00 -05:00
committed by wmayer
parent 2313b05db5
commit 261bc46738
3 changed files with 10 additions and 32 deletions

View File

@@ -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?