Ticket #2052 (closed defect: fixed)
compiling mapfile.c with ALPHACOLOR_ENABLED fails due to formating issues
| Reported by: | simon.kammerer@… | Owned by: | dmorissette |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Build Problems | Version: | 4.8 |
| Severity: | normal | Keywords: | |
| Cc: | jnovak@… |
Description
Around line 1615:
#if ALPHACOLOR_ENABLED
if( label->color.alpha )
writeColorWithAlpha(&(label->color), stream, " ALPHACOLOR", tab);
Else
#endif
writeColor(&(label->color), stream, " COLOR", tab);
fails to compile when ALPHACOLOR_ENABLED flag is set.
Something like:
#if ALPHACOLOR_ENABLED
if( label->color.alpha ){
writeColorWithAlpha(&(label->color), stream, " ALPHACOLOR", tab);
}
else{
writeColor(&(label->color), stream, " COLOR", tab);
}
#endif
compiles well and seems to have no side-effects on mapserver.
Best regards
Simon
Change History
Note: See
TracTickets for help on using
tickets.
