Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75c0758
)
Fix crash in Length2D::GetValues() and MultiConnection2D::GetValues() methods.
author
vsr
<vsr@opencascade.com>
Fri, 24 Sep 2010 08:28:34 +0000
(08:28 +0000)
committer
vsr
<vsr@opencascade.com>
Fri, 24 Sep 2010 08:28:34 +0000
(08:28 +0000)
src/SMESH_I/SMESH_Filter_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Filter_i.cxx
b/src/SMESH_I/SMESH_Filter_i.cxx
index bf5bc2ba64f49800d991fd1f01b3cac536431aec..67c0addd1bb35ff81dbbd4b3afc98d5e170d4297 100644
(file)
--- a/
src/SMESH_I/SMESH_Filter_i.cxx
+++ b/
src/SMESH_I/SMESH_Filter_i.cxx
@@
-772,11
+772,12
@@
SMESH::Length2D::Values* Length2D_i::GetValues()
{
INFOS("Length2D_i::GetValues");
SMESH::Controls::Length2D::TValues aValues;
{
INFOS("Length2D_i::GetValues");
SMESH::Controls::Length2D::TValues aValues;
-
myLength2DPtr
->GetValues( aValues );
+
(dynamic_cast<SMESH::Controls::Length2D*>(myFunctorPtr.get()))
->GetValues( aValues );
long i = 0, iEnd = aValues.size();
SMESH::Length2D::Values_var aResult = new SMESH::Length2D::Values(iEnd);
long i = 0, iEnd = aValues.size();
SMESH::Length2D::Values_var aResult = new SMESH::Length2D::Values(iEnd);
+ aResult->length(iEnd);
SMESH::Controls::Length2D::TValues::const_iterator anIter;
for ( anIter = aValues.begin() ; anIter != aValues.end(); anIter++, i++ )
SMESH::Controls::Length2D::TValues::const_iterator anIter;
for ( anIter = aValues.begin() ; anIter != aValues.end(); anIter++, i++ )
@@
-827,11
+828,12
@@
SMESH::MultiConnection2D::Values* MultiConnection2D_i::GetValues()
{
INFOS("MultiConnection2D_i::GetValues");
SMESH::Controls::MultiConnection2D::MValues aValues;
{
INFOS("MultiConnection2D_i::GetValues");
SMESH::Controls::MultiConnection2D::MValues aValues;
-
myMulticonnection2DPtr
->GetValues( aValues );
-
+
(dynamic_cast<SMESH::Controls::MultiConnection2D*>(myFunctorPtr.get()))
->GetValues( aValues );
+
long i = 0, iEnd = aValues.size();
SMESH::MultiConnection2D::Values_var aResult = new SMESH::MultiConnection2D::Values(iEnd);
long i = 0, iEnd = aValues.size();
SMESH::MultiConnection2D::Values_var aResult = new SMESH::MultiConnection2D::Values(iEnd);
+ aResult->length(iEnd);
SMESH::Controls::MultiConnection2D::MValues::const_iterator anIter;
for ( anIter = aValues.begin() ; anIter != aValues.end(); anIter++, i++ )
SMESH::Controls::MultiConnection2D::MValues::const_iterator anIter;
for ( anIter = aValues.begin() ; anIter != aValues.end(); anIter++, i++ )