Salome HOME
Fix compilation problem on Debian Sarge
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IAdvancedOperations.cxx
index 7dd16e1aeb83841fcffda4a52659afdae70c7111..96f81eaf454895cad3bd37c9f0f4a761e8952160 100644 (file)
@@ -98,13 +98,14 @@ GEOMImpl_IAdvancedOperations::~GEOMImpl_IAdvancedOperations() {
 gp_Trsf GEOMImpl_IAdvancedOperations::GetPositionTrsf(double theL1, double theL2, Handle(GEOM_Object) theP1,
                Handle(GEOM_Object) theP2, Handle(GEOM_Object) theP3) {
        // Old Local Coordinates System oldLCS
+       gp_Pnt P0(0, 0, 0);
        gp_Pnt P1(-theL1, 0, 0);
        gp_Pnt P2(theL1, 0, 0);
        gp_Pnt P3(0, 0, theL2);
 
        gp_Dir oldX(gp_Vec(P1, P2));
-       gp_Dir oldZ(gp_Vec(gp::Origin(), P3));
-       gp_Ax3 oldLCS(gp::Origin(), oldZ, oldX);
+       gp_Dir oldZ(gp_Vec(P0, P3));
+       gp_Ax3 oldLCS(P0, oldZ, oldX);
 
        // New Local Coordinates System newLCS
        double LocX, LocY, LocZ;