Changeset 11399
- Timestamp:
- 05/02/07 16:10:00 (1 year ago)
- Files:
-
- branches/1.4/gdal/ogr/ogrfeaturestyle.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.4/gdal/ogr/ogrfeaturestyle.cpp
r10646 r11399 849 849 int &nTransparance) 850 850 { 851 int nCount ;851 int nCount = 0; 852 852 853 853 nTransparance = 255; 854 854 855 855 // FIXME: should we really use sscanf here? 856 nCount = sscanf(pszColor,"#%2x%2x%2x%2x",&nRed,&nGreen,&nBlue, 857 &nTransparance); 856 if( pszColor ) 857 nCount = sscanf(pszColor,"#%2x%2x%2x%2x",&nRed,&nGreen,&nBlue, 858 &nTransparance); 858 859 859 860 if (nCount >=3)
