Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[QGIS Server] Loss qobject_cast when it's usefull
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/server/qgsserverprojectparser.cpp
|
@@ -291,7 +291,7 @@ QgsMapLayer* QgsServerProjectParser::createLayerFromElement( const QDomElement& |
|
|
|
|
|
if ( layer->type() == QgsMapLayer::VectorLayer ) |
|
|
{ |
|
|
addValueRelationLayersForLayer( dynamic_cast<QgsVectorLayer *>( layer ) ); |
|
|
addValueRelationLayersForLayer( qobject_cast<QgsVectorLayer *>( layer ) ); |
|
|
} |
|
|
} |
|
|
return layer; |
|
|