Permalink
Browse files

Resolving #4638.

  • Loading branch information...
1 parent 929ed6f commit 937dcb6857501835b5489fa4bea321105412a20b @Schpidi Schpidi committed May 7, 2013
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
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 ?

@Schpidi
Member
Schpidi commented on 937dcb6 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.