Fix mixed line endings

This commit is contained in:
Zheng, Lei
2022-04-26 21:45:10 +08:00
committed by Chris Hennes
parent be31116b61
commit 8bec44934b
66 changed files with 344 additions and 344 deletions

View File

@@ -581,7 +581,7 @@ bool ViewProviderDocumentObject::showInTree() const {
bool ViewProviderDocumentObject::getElementPicked(const SoPickedPoint *pp, std::string &subname) const
{
if(!isSelectable())
if(!isSelectable())
return false;
auto vector = getExtensionsDerivedFromType<Gui::ViewProviderExtension>();
for(Gui::ViewProviderExtension* ext : vector)
@@ -602,7 +602,7 @@ bool ViewProviderDocumentObject::getElementPicked(const SoPickedPoint *pp, std::
if(idx<0 || idx+1>=path->getLength())
return false;
auto vp = getDocument()->getViewProvider(path->getNode(idx+1));
if(!vp)
if(!vp)
return false;
auto obj = vp->getObject();
if(!obj || !obj->getNameInDocument())
@@ -631,16 +631,16 @@ bool ViewProviderDocumentObject::getDetailPath(const char *subname, SoFullPath *
}
const char *dot = strchr(subname,'.');
if(!dot)
if(!dot)
return false;
auto obj = getObject();
if(!obj || !obj->getNameInDocument())
if(!obj || !obj->getNameInDocument())
return false;
auto sobj = obj->getSubObject(std::string(subname,dot-subname+1).c_str());
if(!sobj)
if(!sobj)
return false;
auto vp = Application::Instance->getViewProvider(sobj);
if(!vp)
if(!vp)
return false;
auto childRoot = getChildRoot();