]> OCCT Git - occt.git/commitdiff
// test changes
authordpasukhi <dpasukhi@opencascade.com>
Sat, 7 Jan 2023 22:56:38 +0000 (22:56 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Thu, 9 Mar 2023 17:37:52 +0000 (17:37 +0000)
src/XDEDRAW/XDEDRAW_Common.cxx
src/XSControl/XSControl.cxx

index 585f64e0e54677e0efe6d9e19f9bd5ed2311b8b6..b22973baa39dcf82285e2d79e240dbe0f8090abe 100644 (file)
@@ -214,8 +214,7 @@ static Standard_Integer FromShape(Draw_Interpretor& theDI,
   for (XSControl_WorkSessionMap::Iterator DicIt(DictWS);
        DicIt.More(); DicIt.Next())
   {
-    Handle(XSControl_WorkSession) CurrentWS =
-      Handle(XSControl_WorkSession)::DownCast(DicIt.Value());
+    Handle(XSControl_WorkSession) CurrentWS = DicIt.Value();
     XSDRAW::Pilot()->SetSession(CurrentWS);
     theDI.Eval(command);
   }
index 779d7e40b3b474dddddf302a20673ff723ec4731..8395775e42d9e9572be61e00043c13048c6a431a 100644 (file)
@@ -25,7 +25,7 @@ Handle(XSControl_WorkSession)  XSControl::Session
     Handle(XSControl_Vars)  XSControl::Vars
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
-  Handle(XSControl_Vars) avars;
+  Handle(XSControl_Vars) avars = new XSControl_Vars;;
   Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
   //if (!WS.IsNull()) avars = WS->Vars();
   return avars;