Opened 17 years ago
Closed 16 years ago
#1413 closed defect (fixed)
Whitespace no longer accepted by style string parser
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | OGR_SF | Version: | 1.4.0 |
Severity: | minor | Keywords: | |
Cc: |
Description
I've just moved from GDAL 1.3.2 to the latest 1.4 beta and the previously acceptable: "BRUSH(fc:#000000, bc:#000000)" now fails to parse (note the space). "BRUSH(fc:#000000,bc:#000000)" is fine. No explicit error was raised, but (for the first case above) the BrushStyle returned : pszColor = poStyleBrush->ForeColor(bDefault); // returns a color ok pszColor = poStyleBrush->BackColor(bDefault); // returns null
Note:
See TracTickets
for help on using tickets.
Well, the error is not reported, but bDefault flag clearly shows that there is a problem. E.g., the following test program
prints:
bDefault should be always checked for possible failure.
Anyhow, I have fixed this issue with the r14175 in trunk.