Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
047a680
)
Improve CheckShape function
author
jfa
<jfa@opencascade.com>
Fri, 12 Aug 2005 07:24:51 +0000
(07:24 +0000)
committer
jfa
<jfa@opencascade.com>
Fri, 12 Aug 2005 07:24:51 +0000
(07:24 +0000)
src/GEOM_I/GEOM_IMeasureOperations_i.cc
patch
|
blob
|
history
diff --git
a/src/GEOM_I/GEOM_IMeasureOperations_i.cc
b/src/GEOM_I/GEOM_IMeasureOperations_i.cc
index eebc5a86b8fd5a164125f7c9ce332827be2ec562..a716fdbb9c01284b094687dc8b48563dfc52e6d3 100644
(file)
--- a/
src/GEOM_I/GEOM_IMeasureOperations_i.cc
+++ b/
src/GEOM_I/GEOM_IMeasureOperations_i.cc
@@
-183,29
+183,29
@@
CORBA::Boolean GEOM_IMeasureOperations_i::CheckShape (GEOM::GEOM_Object_ptr theS
GetOperations()->SetNotDone();
if (theShape == NULL)
GetOperations()->SetNotDone();
if (theShape == NULL)
-
{
-
theDescription = CORBA::string_dup("null");
-
return 0;
-
}
+ {
+ theDescription = CORBA::string_dup("null");
+ return 0;
+ }
//Get the reference shape
Handle(GEOM_Object) aShape = GetOperations()->GetEngine()->GetObject
(theShape->GetStudyID(), theShape->GetEntry());
if (aShape.IsNull())
//Get the reference shape
Handle(GEOM_Object) aShape = GetOperations()->GetEngine()->GetObject
(theShape->GetStudyID(), theShape->GetEntry());
if (aShape.IsNull())
-
{
-
theDescription = CORBA::string_dup("null2");
-
return 0;
-
}
+ {
+ theDescription = CORBA::string_dup("null2");
+ return 0;
+ }
// Get shape parameters
TCollection_AsciiString aDump;
if (GetOperations()->CheckShape(aShape, aDump))
// Get shape parameters
TCollection_AsciiString aDump;
if (GetOperations()->CheckShape(aShape, aDump))
-
{
-
theDescription = CORBA::string_dup(aDump.ToCString()
);
-
return 1;
-
}
- theDescription = CORBA::string_dup(
"checkShape 0"
);
+ {
+
theDescription = CORBA::string_dup("OK"
);
+ return 1;
+ }
+ theDescription = CORBA::string_dup(
aDump.ToCString()
);
return 0;
}
return 0;
}