]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
22237: Study dump produces a Python code containing syntax errors - merged from V6_7_BR BR_PPGP_BETA1
authorsan <san@opencascade.com>
Fri, 19 Jul 2013 16:15:50 +0000 (16:15 +0000)
committersan <san@opencascade.com>
Fri, 19 Jul 2013 16:15:50 +0000 (16:15 +0000)
src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx

index 42aaa42607c172af81b2161367ab7e8ba6de2e53..af912af924deb4b24b676c51813a797ea14922d8 100644 (file)
@@ -635,13 +635,11 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetVertexNearPoint
   anArray->SetValue(1, anIndices.FindIndex(V));
   aResult = GetEngine()->AddSubShape(theShape, anArray);
 
-  // The GetPoint() doesn't change object so no new function is required.
-  Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
-
-  // Make a Python command
-  GEOM::TPythonDump(aFunction, /*append=*/true)
-    << aResult << " = geompy.GetVertexNearPoint("
-    << theShape << ", " << thePoint << ")";
+  Handle(GEOM_Function) aFunction = aResult->GetLastFunction();\r
+\r
+  // Make a Python command\r
+  GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetVertexNearPoint("\r
+                               << theShape << ", " << thePoint << ")";\r
 
   SetErrorCode(OK);
   return aResult;