Commit 66380127 authored by Emmanuel Bertin's avatar Emmanuel Bertin
Browse files

Fixed uninitialized 2nd BACK_VALUE in double image + BACK_TYPE MANUAL modes.

parent cee8ce88
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* This file part of: SExtractor * This file part of: SExtractor
* *
* Copyright: (C) 1993-2012 Emmanuel Bertin -- IAP/CNRS/UPMC * Copyright: (C) 1993-2013 Emmanuel Bertin -- IAP/CNRS/UPMC
* *
* License: GNU General Public License * License: GNU General Public License
* *
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>. * along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
* *
* Last modified: 11/07/2012 * Last modified: 18/06/2012
* *
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...@@ -591,12 +591,15 @@ void useprefs() ...@@ -591,12 +591,15 @@ void useprefs()
prefs.somfit_flag = FLAG(obj2.flux_somfit); prefs.somfit_flag = FLAG(obj2.flux_somfit);
/*------------------------------ Background --------------------------------*/ /*------------------------------ Background --------------------------------*/
if (prefs.nback_type<2)
prefs.back_type[1] = prefs.back_type[0];
if (prefs.nback_val<2)
prefs.back_val[1] = prefs.back_val[0];
if (prefs.nbacksize<2) if (prefs.nbacksize<2)
prefs.backsize[1] = prefs.backsize[0]; prefs.backsize[1] = prefs.backsize[0];
if (prefs.nbackfsize<2) if (prefs.nbackfsize<2)
prefs.backfsize[1] = prefs.backfsize[0]; prefs.backfsize[1] = prefs.backfsize[0];
if (prefs.nback_type<2)
prefs.back_type[1] = prefs.back_type[0];
/*------------------------------ FLAG-images -------------------------------*/ /*------------------------------ FLAG-images -------------------------------*/
prefs.nimaisoflag = (prefs.imaflag_size > prefs.imanflag_size) ? prefs.nimaisoflag = (prefs.imaflag_size > prefs.imanflag_size) ?
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>. * along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
* *
* Last modified: 05/04/2013 * Last modified: 10/06/2013
* *
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...@@ -168,7 +168,7 @@ OUTPUT Pointer to an allocated fit structure (containing details about the ...@@ -168,7 +168,7 @@ OUTPUT Pointer to an allocated fit structure (containing details about the
fit). fit).
NOTES It is a modified version of the lm_minimize() of lmfit. NOTES It is a modified version of the lm_minimize() of lmfit.
AUTHOR E. Bertin (IAP) AUTHOR E. Bertin (IAP)
VERSION 05/04/2013 VERSION 10/06/2013
***/ ***/
void profit_fit(profitstruct *profit, void profit_fit(profitstruct *profit,
picstruct *field, picstruct *wfield, picstruct *field, picstruct *wfield,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment