Skip to content

Commit

Permalink
Allow to specify empty color in mapscript (#5286)
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed May 27, 2016
1 parent 3c32009 commit f2b0310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapscript/swiginc/color.i
Expand Up @@ -42,7 +42,7 @@

/* Check colors */
if (red > 255 || green > 255 || blue > 255 || alpha>255 ||
red<0 || green<0 || blue<0 || alpha<0 ) {
red<-1 || green<-1 || blue<-1 || alpha<0 ) {
msSetError(MS_MISCERR, "Invalid color", "colorObj()");
return NULL;
}
Expand Down

0 comments on commit f2b0310

Please sign in to comment.