Permalink
Browse files

restore check for layer->maxfeatures (#4730)

  • Loading branch information...
1 parent 3128a85 commit a0ef44a7a897b6ab037e3d72f7d6ce6a606e9a74 @tbonfort tbonfort committed Aug 20, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 maplayer.c
  2. +1 −1 msautotest
View
@@ -979,6 +979,7 @@ int msLayerGetMaxFeaturesToDraw(layerObj *layer, outputFormatObj *format)
int nMaxFeatures = -1;
const char *pszTmp = NULL;
if (layer) {
+ nMaxFeatures = layer->maxfeatures;
pszTmp = msLookupHashTable(&layer->metadata, "maxfeaturestodraw");
if (pszTmp)
nMaxFeatures = atoi(pszTmp);

1 comment on commit a0ef44a

@sdlime
Member
sdlime commented on a0ef44a Aug 20, 2013

I'll have to try some similar debugging here. --Steve

Please sign in to comment.