Changeset 13783
- Timestamp:
- 02/14/08 14:58:21 (3 months ago)
- Author:
- rouault
- Message:
GSAG : make it error out properly if nRasterXSize == 0
nRasterYSize == 0
- Files:
- trunk/gdal/frmts/gsg/gsagdataset.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/frmts/gsg/gsagdataset.cpp
r13778 r13783 892 892 poDS->nRasterXSize = INT_MAX; 893 893 } 894 else if ( nTemp == 0 ) 895 { 896 szErrorMsg = "Number of X axis grid columns is zero, which is invalid.\n"; 897 goto error; 898 } 894 899 else 895 900 { … … 910 915 "Number of Y axis grid rows not representable.\n" ); 911 916 poDS->nRasterYSize = INT_MAX; 917 } 918 else if ( nTemp == 0) 919 { 920 szErrorMsg = "Number of Y axis grid rows is zero, which is invalid.\n"; 921 goto error; 912 922 } 913 923 else
Download in other formats:
Powered by Trac 0.10.3.1
By Edgewall Software.Visit the Trac open source project at
http://trac.edgewall.org/
