Skip to content

Commit

Permalink
Tidy up code re #5542
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlPalmen committed Jul 6, 2012
1 parent b65765e commit 946522d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/CurveFitting/src/Abragam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ void Abragam::setActiveParameter(size_t i,double value)
double a = fmod(value, 2*M_PI);
if( a<=-M_PI ) a += 2*M_PI;
if( a>M_PI ) a-= 2*M_PI;
setParameter(j,a,false); }
setParameter(j,a,false);
}
else
setParameter(j,value,false);
}
Expand Down
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/CurveFitting/src/GausOsc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ void GausOsc::setActiveParameter(size_t i,double value)
double a = fmod(value, 2*M_PI);
if( a<=-M_PI ) a += 2*M_PI;
if( a>M_PI ) a-= 2*M_PI;
setParameter(j,a,false); }
setParameter(j,a,false);
}
else
setParameter(j,value,false);
}
Expand Down

0 comments on commit 946522d

Please sign in to comment.