Core: GetGlobalPlacement: empty subname should not return.
This commit is contained in:
committed by
Chris Hennes
parent
3070832e54
commit
5eb09c8e45
@@ -304,7 +304,7 @@ Base::Placement GeoFeature::getGlobalPlacement(App::DocumentObject* targetObj,
|
||||
App::DocumentObject* rootObj,
|
||||
const std::string& sub)
|
||||
{
|
||||
if (!targetObj || !rootObj || sub.empty()) {
|
||||
if (!targetObj || !rootObj) {
|
||||
return Base::Placement();
|
||||
}
|
||||
std::vector<std::string> names = Base::Tools::splitSubName(sub);
|
||||
|
||||
Reference in New Issue
Block a user