Changeset 29833 for trunk/ppImage/src/ppImageOptions.c
- Timestamp:
- Nov 25, 2010, 9:45:07 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageOptions.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/czw_branch/20100817 (added) merged: 28947,29486,29678-29679,29813
- Property svn:mergeinfo changed
-
trunk/ppImage/src/ppImageOptions.c
r28043 r29833 8 8 { 9 9 psFree(options->overscan); 10 psFree(options->nonLinearData);11 psFree(options->nonLinearSource);10 // psFree(options->nonLinearData); 11 // psFree(options->nonLinearSource); 12 12 } 13 13 … … 130 130 psMetadataItem *dataItem = psMetadataLookup(recipe, "NONLIN.DATA"); 131 131 if (! dataItem) { 132 psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but unable to " 133 "find NONLIN.DATA in recipe %s.", RECIPE_NAME); 132 psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but unable to find NONLIN.DATA in recipe %s.", RECIPE_NAME); 134 133 exit(EXIT_FAILURE); 135 134 } … … 147 146 // This is a menu; we need the key 148 147 case PS_DATA_METADATA: 149 { 150 bool status; 151 options->nonLinearSource = psMetadataLookupStr(&status, recipe, "NONLIN.SOURCE"); 152 if (! status || ! options->nonLinearSource) { 153 psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but unable to " 154 "find NONLIN.SOURCE in recipe %s.", RECIPE_NAME); 155 exit(EXIT_FAILURE); 156 } 157 } 148 options->nonLinearSource = psMetadataLookupStr(&status, recipe, "NONLIN.SOURCE"); 149 if (! status || ! options->nonLinearSource) { 150 psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but unable to find NONLIN.SOURCE in recipe %s.", RECIPE_NAME); 151 exit(EXIT_FAILURE); 152 } 158 153 break; 159 154 default: 160 psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but " 161 "NONLIN.DATA is of invalid type in recipe %s.", RECIPE_NAME); 155 psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but NONLIN.DATA is of invalid type in recipe %s.", RECIPE_NAME); 162 156 exit(EXIT_FAILURE); 163 157 }
Note:
See TracChangeset
for help on using the changeset viewer.
