COMMIT : Error Correction in wavelib.c : Value wt->type wasn't being updated with "lin" scales option

This commit is contained in:
Rafat Hussain 2016-10-10 09:44:46 +05:30
parent 3b92f27042
commit b511fe864d

View File

@ -1340,6 +1340,7 @@ void setCWTScales(cwt_object wt, double s0, double dj,char *type,int power) {
wt->scale[i] = s0 + (double)i * dj; wt->scale[i] = s0 + (double)i * dj;
} }
wt->sflag = 1; wt->sflag = 1;
strcpy(wt->type,type);
} }
else { else {
printf("\n Type accepts only two values : pow and lin\n"); printf("\n Type accepts only two values : pow and lin\n");