Mantis issue 0022237: Study dump produces a Python code containing syntax errors

This commit is contained in:
jfa 2013-07-01 06:40:44 +00:00
parent c5b6deb54b
commit 5f7358def1

View File

@ -635,12 +635,10 @@ 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();
Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
// Make a Python command
GEOM::TPythonDump(aFunction, /*append=*/true)
<< aResult << " = geompy.GetVertexNearPoint("
GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetVertexNearPoint("
<< theShape << ", " << thePoint << ")";
SetErrorCode(OK);