Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IPAL19834: Incorrect result after make Partition of 2 objects. A fix by PKV.
[modules/geom.git]
/
src
/
BasicGUI
/
BasicGUI_CurveDlg.cxx
diff --git
a/src/BasicGUI/BasicGUI_CurveDlg.cxx
b/src/BasicGUI/BasicGUI_CurveDlg.cxx
index cf5023b5fae7b4c48b19a77720dbcb5bc33f5d47..a3e278ad1759f7ab3ae38ac4432f5ad960647de9 100644
(file)
--- a/
src/BasicGUI/BasicGUI_CurveDlg.cxx
+++ b/
src/BasicGUI/BasicGUI_CurveDlg.cxx
@@
-295,7
+295,8
@@
void BasicGUI_CurveDlg::SelectionIntoArgument()
//Find Object in study
_PTR(SObject) obj ( aDStudy->FindObjectID( anIt.Value()->getEntry() ) );
bool inStudy = false;
//Find Object in study
_PTR(SObject) obj ( aDStudy->FindObjectID( anIt.Value()->getEntry() ) );
bool inStudy = false;
- for (_PTR(ChildIterator) iit ( aDStudy->NewChildIterator( obj ) ); iit->More(); iit->Next() ) {
+ _PTR(ChildIterator) iit( aDStudy->NewChildIterator( obj ) );
+ for (; iit->More() && !inStudy; iit->Next()) {
_PTR(SObject) child( iit->Value() );
QString aChildName = child->GetName().c_str();
if ( aChildName == aName ) {
_PTR(SObject) child( iit->Value() );
QString aChildName = child->GetName().c_str();
if ( aChildName == aName ) {