Opened 21 years ago
Last modified 20 years ago
#306 closed defect (fixed)
OGRStyleTool::GetRGBFromString defaults alpha to 0.
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
The function OGRStyleTool::GetRGBFromString defaults the alpha value to zero and there is no way when using this function to know if the returned value is the default value or the value specified in the color string. The default value should normally be set to 0xFF as specified in the doc.
Change History (2)
comment:2 by , 20 years ago
Frédéric, I'm very sorry it took so long to fix this problem. It certainly wasn't hard to correct. I have committed a fix to default alpha to 255 (0xff) if there is no alpha in the RGB string. I haven't actually tested it, other than to build it.
Note:
See TracTickets
for help on using tickets.