Skip to content

Commit

Permalink
Fix creation of a vector symbolObj in mapscript (#4318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Boudreault committed May 16, 2012
1 parent 2d61147 commit a3afec0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.TXT
Expand Up @@ -14,6 +14,8 @@ For a complete change history, please see the Git log comments.
Current Version (git master, 6.1-dev, future 6.2):
-------------------------------------------------

- Fix creation of a vector symbolObj in mapscript (#4318)

- Added coverage metadata in WCS (#4306)

- Ignore unknown requets parameteres in WCS 2.0 (#4307).
Expand Down
4 changes: 4 additions & 0 deletions mapscript/swiginc/symbol.i
Expand Up @@ -67,8 +67,12 @@

int setPoints(lineObj *line) {
int i;
self->sizex = 0;
self->sizey = 0;
for (i=0; i<line->numpoints; i++) {
MS_COPYPOINT(&(self->points[i]), &(line->point[i]));
self->sizex = MS_MAX(self->sizex, self->points[i].x);
self->sizey = MS_MAX(self->sizey, self->points[i].y);
}
self->numpoints = line->numpoints;
return self->numpoints;
Expand Down

0 comments on commit a3afec0

Please sign in to comment.