Permalink
Browse files

Resolving #4638.

  • Loading branch information...
Schpidi committed May 7, 2013
1 parent 929ed6f commit 937dcb6857501835b5489fa4bea321105412a20b
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapwms.c
View
@@ -2446,7 +2446,7 @@ int msDumpLayer(mapObj *map, layerObj *lp, int nVersion, const char *script_url_
break;
}
}
if (l < lp2->numclasses)
if (lp2 && l < lp2->numclasses)
break;
}
if (j < numNestedGroups[lp->index])

2 comments on commit 937dcb6

@tomkralidis

This comment has been minimized.

Show comment
Hide comment
@tomkralidis

tomkralidis May 7, 2013

Member

Thanks @Schpidi as discussed in IRC, this has issues when I name a CLASSGROUP default.

What is the default style used here when a client then requests STYLES= or STYLES=default ?

Member

tomkralidis replied May 7, 2013

Thanks @Schpidi as discussed in IRC, this has issues when I name a CLASSGROUP default.

What is the default style used here when a client then requests STYLES= or STYLES=default ?

@Schpidi

This comment has been minimized.

Show comment
Hide comment
@Schpidi

Schpidi May 8, 2013

Member

If you want to use the name "default" add something like:

"wms_style_name" "not_default"

to WEB METDATA.

The default style, i.e. the one used with STYLES=, should be the last listed in the MapFile.

Member

Schpidi replied May 8, 2013

If you want to use the name "default" add something like:

"wms_style_name" "not_default"

to WEB METDATA.

The default style, i.e. the one used with STYLES=, should be the last listed in the MapFile.

Please sign in to comment.