Skip to content

Commit

Permalink
Merge branch 'branch-6-2'
Browse files Browse the repository at this point in the history
Conflicts:
	.travis.yml
	mapfile.c
	msautotest
  • Loading branch information
tbonfort committed Jul 23, 2013
2 parents 2c7a605 + e3bd202 commit 9ae14e8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
12 changes: 11 additions & 1 deletion mapfile.c
Expand Up @@ -651,7 +651,17 @@ static void writeColor(FILE *stream, int indent, const char *name, colorObj *def
#if ALPHACOLOR_ENABLED
msIO_fprintf(stream, "%s %d %d %d\n", name, color->red, color->green, color->blue, color->alpha);
#else
msIO_fprintf(stream, "%s %d %d %d\n", name, color->red, color->green, color->blue);
if(color->alpha != 255) {
char buffer[9];
sprintf(buffer, "%02x", color->red);
sprintf(buffer+2, "%02x", color->green);
sprintf(buffer+4, "%02x", color->blue);
sprintf(buffer+6, "%02x", color->alpha);
*(buffer+8) = 0;
fprintf(stream, "%s \"#%s\"\n", name, buffer);
} else {
fprintf(stream, "%s %d %d %d\n", name, color->red, color->green, color->blue);
}
#endif
}

Expand Down
10 changes: 5 additions & 5 deletions mapogcsld.c
Expand Up @@ -613,20 +613,20 @@ layerObj *msSLDParseSLD(mapObj *map, char *psSLDXML, int *pnLayers)
}


int _msSLDParseSizeParameter(CPLXMLNode *psSize)
double _msSLDParseSizeParameter(CPLXMLNode *psSize)
{
int nSize = 0;
double dSize = 0;
CPLXMLNode *psLiteral = NULL;

if (psSize) {
psLiteral = CPLGetXMLNode(psSize, "Literal");
if (psLiteral && psLiteral->psChild && psLiteral->psChild->pszValue)
nSize = atof(psLiteral->psChild->pszValue);
dSize = atof(psLiteral->psChild->pszValue);
else if (psSize->psChild && psSize->psChild->pszValue)
nSize = atof(psSize->psChild->pszValue);
dSize = atof(psSize->psChild->pszValue);
}

return nSize;
return dSize;
}

/************************************************************************/
Expand Down
4 changes: 3 additions & 1 deletion maprendering.c
Expand Up @@ -833,13 +833,15 @@ int msDrawMarkerSymbol(symbolSetObj *symbolset,imageObj *image, pointObj *p, sty
break;
}

s.style = style;
computeSymbolStyle(&s,style,symbol,scalefactor,image->resolutionfactor);
s.style = style;
if (!s.color && !s.outlinecolor && symbol->type != MS_SYMBOL_PIXMAP &&
symbol->type != MS_SYMBOL_SVG) {
return MS_SUCCESS; // nothing to do if no color, except for pixmap symbols
}
if(s.scale == 0) {
return MS_SUCCESS;
}



Expand Down
2 changes: 1 addition & 1 deletion msautotest
Submodule msautotest updated from 3429ac to c64704

0 comments on commit 9ae14e8

Please sign in to comment.