Commit 44f44bb5bd766f0d3971b8b3a1e5a5e83c394df1

1 parent
e3449029

### fixed a minor bug involving the progress update for BSQ files without wavelength vectors

stim/envi/bsq.h

... | ... | @@ -92,8 +92,11 @@ public: |

92 | 92 | bool band( T * p, double wavelength, bool PROGRESS = false){ |

93 | 93 | if(PROGRESS) progress = 0; |

94 | 94 | //if there are no wavelengths in the BSQ file |

95 | - if(w.size() == 0) | |

96 | - return band_index(p, (unsigned long long)wavelength); | |

95 | + if(w.size() == 0){ | |

96 | + band_index(p, (unsigned long long)wavelength); | |

97 | + if(PROGRESS) progress = 100; | |

98 | + return true; | |

99 | + } | |

97 | 100 | |

98 | 101 | unsigned long long XY = X() * Y(); //calculate the number of pixels in a band |

99 | 102 | unsigned long long page = 0; |

... | ... |