Skip to content

Commit e6b66a6

Browse files
committed
[OGR] Fix msOGRGetPaging()
1 parent 892deaf commit e6b66a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: mapogr.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -4298,8 +4298,6 @@ static void msOGREnablePaging(layerObj *layer, int value)
42984298
if (layer->debug) {
42994299
msDebug("msOGREnablePaging(%d) called.\n", value);
43004300
}
4301-
if( value < 0 )
4302-
return;
43034301

43044302
if(!msOGRLayerIsOpen(layer))
43054303
msOGRLayerOpenVT(layer);
@@ -4327,7 +4325,7 @@ static int msOGRGetPaging(layerObj *layer)
43274325
}
43284326

43294327
if(!msOGRLayerIsOpen(layer))
4330-
return -1;
4328+
msOGRLayerOpenVT(layer);
43314329

43324330
assert( layer->layerinfo != NULL);
43334331

0 commit comments

Comments
 (0)