0027104: DownCast() cannot return null for mismatched handle
[occt.git] / src / TestTopOpeDraw / TestTopOpeDraw_Displayer.cxx
index 7387723..43a8ec1 100644 (file)
@@ -139,7 +139,7 @@ void TestTopOpeDraw_Displayer::DisplayShapePrivate()
   if (myPar != -1.0 ) D->SetPar(myPar);
   
   char* pname = (char *)myNameDBRep.ToCString();
-  Draw::Set(pname,Handle(DBRep_DrawableShape)::DownCast(D));
+  Draw::Set(pname,D);
 }
 
 //=======================================================================