Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix JoinAll operation
[modules/hydro.git]
/
src
/
HYDROCurveCreator
/
CurveCreator_Curve.cxx
diff --git
a/src/HYDROCurveCreator/CurveCreator_Curve.cxx
b/src/HYDROCurveCreator/CurveCreator_Curve.cxx
index 7732314881c16fce744807370401d6da9500067b..824338b29055919aa2f048b9efc3a97e2ef0724e 100644
(file)
--- a/
src/HYDROCurveCreator/CurveCreator_Curve.cxx
+++ b/
src/HYDROCurveCreator/CurveCreator_Curve.cxx
@@
-525,12
+525,15
@@
bool CurveCreator_Curve::join( const int theISectionTo,
const int theISectionFrom )
{
bool res = false;
const int theISectionFrom )
{
bool res = false;
- if (theISectionTo != theISectionFrom) {
+ if (mySections.size() >= 2 &&
+ ( theISectionTo != theISectionFrom || (theISectionTo == -1 && theISectionFrom == -1) )) {
startOperation();
startOperation();
+ int aISectionTo = getNbSections()-1;
+ int aISectionFrom = 0;
if (addEmptyDiff())
if (addEmptyDiff())
- myListDiffs.back().init(this, CurveCreator_Operation::Join,
theISectionTo, the
ISectionFrom);
+ myListDiffs.back().init(this, CurveCreator_Operation::Join,
aISectionTo, a
ISectionFrom);
- res = joinInternal(
theISectionTo, the
ISectionFrom );
+ res = joinInternal(
aISectionTo, a
ISectionFrom );
finishOperation();
}
finishOperation();
}