0031458: Visualization - refine classes across Prs3d and StdPrs packages
[occt.git] / src / PrsDim / PrsDim_Dimension.cxx
index 17e9890..9589d7d 100644 (file)
@@ -28,7 +28,6 @@
 #include <GC_MakeCircle.hxx>
 #include <Geom_Line.hxx>
 #include <GeomAdaptor_Curve.hxx>
-#include <Geom_Circle.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <gce_MakeDir.hxx>
 #include <gce_MakeLin.hxx>
@@ -1386,10 +1385,7 @@ void PrsDim_Dimension::ComputeSelection (const Handle(SelectMgr_Selection)& theS
     {
       gp_Circ aTextGeom (aTextAxes, mySelToleranceForText2d != 0.0 
                                       ? mySelToleranceForText2d : 1.0);
-
-      Handle(Geom_Circle) aSensGeom = new Geom_Circle (aTextGeom);
-
-      aTextSensitive = new Select3D_SensitiveCircle (aSensitiveOwner, aSensGeom, Standard_True);
+      aTextSensitive = new Select3D_SensitiveCircle (aSensitiveOwner, aTextGeom, Standard_True);
     }
 
     theSelection->Add (aTextSensitive);