Changeset 14723
- Timestamp:
- 06/17/08 18:25:45 (6 months ago)
- Files:
-
- trunk/gdal/gcore/gdal_misc.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/gcore/gdal_misc.cpp
r14168 r14723 709 709 { 710 710 CPLError( CE_Failure, CPLE_AppDefined, 711 "GDALGetRandom Sample(): returning because band"711 "GDALGetRandomRasterSample(): returning because band" 712 712 " appears degenerate." ); 713 713 … … 723 723 && ((nBlockCount-1) / nSampleRate + 1) * nBlockPixels < nSamples ) 724 724 nSampleRate--; 725 726 if ((nSamples / ((nBlockCount-1) / nSampleRate + 1)) == 0) 727 { 728 // FIXME ? EvenR: This is to avoid crash. Maybe fixable ? 729 CPLError( CE_Failure, CPLE_AppDefined, 730 "GDALGetRandomRasterSample(): returning because band" 731 " appears degenerate." ); 732 733 return FALSE; 734 } 725 735 726 736 nBlockSampleRate =
