Skip to content

Commit

Permalink
Addressed issues identified in issue #6463. (#6466)
Browse files Browse the repository at this point in the history
Addressed issues identified in issue #6463. Mostly expanding allowed values to account for documentation and adding line numbers to error messages to make debugging easier.
  • Loading branch information
sdlime committed Feb 1, 2022
1 parent 4ba9fc0 commit 4d82b30
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 57 deletions.
4 changes: 2 additions & 2 deletions mapdraw.c
Expand Up @@ -282,8 +282,8 @@ imageObj *msDrawMap(mapObj *map, int querymap)
if(map->debug >= MS_DEBUGLEVEL_TUNING) msGettimeofday(&mapstarttime, NULL);

if(querymap) { /* use queryMapObj image dimensions */
if(map->querymap.width != -1) map->width = map->querymap.width;
if(map->querymap.height != -1) map->height = map->querymap.height;
if(map->querymap.width > 0 && map->querymap.width <= map->maxsize) map->width = map->querymap.width;
if(map->querymap.height > 0 && map->querymap.height <= map->maxsize) map->height = map->querymap.height;
}

msApplyMapConfigOptions(map);
Expand Down

0 comments on commit 4d82b30

Please sign in to comment.