File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -4164,7 +4164,7 @@ bool QgsSpatiaLiteProvider::checkLayerTypeAbstractInterface( gaiaVectorLayerPtr
4164
4164
case GAIA_VECTOR_VIRTUAL:
4165
4165
mVShapeBased = true ;
4166
4166
break ;
4167
- };
4167
+ }
4168
4168
4169
4169
if ( lyr->AuthInfos )
4170
4170
{
@@ -4400,7 +4400,8 @@ bool QgsSpatiaLiteProvider::getGeometryDetailsAbstractInterface( gaiaVectorLayer
4400
4400
default :
4401
4401
geomType = QGis::WKBUnknown;
4402
4402
break ;
4403
- };
4403
+ }
4404
+
4404
4405
mSrid = lyr->Srid ;
4405
4406
if ( lyr->SpatialIndex == GAIA_SPATIAL_INDEX_RTREE )
4406
4407
{
@@ -4424,7 +4425,7 @@ bool QgsSpatiaLiteProvider::getGeometryDetailsAbstractInterface( gaiaVectorLayer
4424
4425
case GAIA_XY_Z_M:
4425
4426
nDims = GAIA_XY_Z_M;
4426
4427
break ;
4427
- };
4428
+ }
4428
4429
4429
4430
if ( mViewBased && spatialIndexRTree )
4430
4431
getViewSpatialIndexName ();
@@ -4915,9 +4916,14 @@ bool QgsSpatiaLiteProvider::getTableSummaryAbstractInterface( gaiaVectorLayerPtr
4915
4916
layerExtent.set ( lyr->ExtentInfos ->MinX , lyr->ExtentInfos ->MinY ,
4916
4917
lyr->ExtentInfos ->MaxX , lyr->ExtentInfos ->MaxY );
4917
4918
numberFeatures = lyr->ExtentInfos ->Count ;
4918
- return true ;
4919
4919
}
4920
- return false ;
4920
+ else
4921
+ {
4922
+ layerExtent.setMinimal ();
4923
+ numberFeatures = 0 ;
4924
+ }
4925
+
4926
+ return true ;
4921
4927
}
4922
4928
#endif
4923
4929
You can’t perform that action at this time.
0 commit comments