]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Minor fixes
authormpv <mpv@opencascade.com>
Fri, 8 Sep 2017 13:37:18 +0000 (16:37 +0300)
committermpv <mpv@opencascade.com>
Fri, 8 Sep 2017 13:37:18 +0000 (16:37 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp
src/XGUI/XGUI_Workshop.cpp

index 2886fa7b428900b07a940297b6cb60a244864958..cdf421e6f89f5caf3896813c560b13bdc21fac05 100644 (file)
@@ -715,7 +715,7 @@ std::shared_ptr<GeomAPI_Vertex> GeomAlgoAPI_ShapeTools::intersect(
   const std::shared_ptr<GeomAPI_Edge> theEdge, const std::shared_ptr<GeomAPI_Face> theFace)
 {
   if(!theEdge.get() || !theFace.get()) {
-    return false;
+    return std::shared_ptr<GeomAPI_Vertex>();
   }
 
   TopoDS_Edge anEdge = TopoDS::Edge(theEdge->impl<TopoDS_Shape>());
index 2dee78840129e9e41210d04fdb4d4d69062c1723..7ab372d24330ff7cac299451ddc78923c14be230 100755 (executable)
@@ -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);