From: mpv Date: Fri, 8 Sep 2017 13:37:18 +0000 (+0300) Subject: Minor fixes X-Git-Tag: V_2.9.0~23^2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb5791f033b0e2f0f79693b82464332316ce19b0;p=modules%2Fshaper.git Minor fixes --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp index 2886fa7b4..cdf421e6f 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp @@ -715,7 +715,7 @@ std::shared_ptr GeomAlgoAPI_ShapeTools::intersect( const std::shared_ptr theEdge, const std::shared_ptr theFace) { if(!theEdge.get() || !theFace.get()) { - return false; + return std::shared_ptr(); } TopoDS_Edge anEdge = TopoDS::Edge(theEdge->impl()); diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 2dee78840..7ab372d24 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1418,6 +1418,9 @@ void XGUI_Workshop::onContextMenuCommand(const QString& theId, bool isChecked) #endif aParameters.Append(MyVCallBack); + MyTCommunicator->RegisterPlugin("TKDFBrowser"); + MyTCommunicator->RegisterPlugin("TKShapeView"); + MyTCommunicator->RegisterPlugin("TKVInspector"); MyTCommunicator->RegisterPlugin("SMBrowser"); // custom plugin to view ModelAPI MyTCommunicator->Init(aParameters);