Changeset 11399
- Timestamp:
- May 2, 2007, 1:10:00 PM (17 years ago)
- File:
-
- 1 edited
-
branches/1.4/gdal/ogr/ogrfeaturestyle.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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)
Note:
See TracChangeset
for help on using the changeset viewer.
