Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
compare usertype manually instead of using canConvert (what will beco…
…me obsolete in Qt6)
  • Loading branch information
signedav authored and nyalldawson committed Jul 20, 2022
1 parent 4b1d8b7 commit e3a9342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsogcutils.cpp
Expand Up @@ -2377,7 +2377,7 @@ QDomElement QgsOgcUtilsExprToFilter::expressionFunctionToOgcFilter( const QgsExp
const QDomNode geomNode = mDoc.importNode( geomDoc.documentElement(), true );
otherGeomElem = geomNode.toElement();
}
else if ( otherNode->hasCachedStaticValue() && otherNode->cachedStaticValue().canConvert<QgsGeometry>() )
else if ( otherNode->hasCachedStaticValue() && otherNode->cachedStaticValue().userType() == QMetaType::type( "QgsGeometry" ) )
{
QgsGeometry geom = otherNode->cachedStaticValue().value<QgsGeometry>();
otherGeomElem = QgsOgcUtils::geometryToGML( geom, mDoc, mGMLVersion, mSrsName, mInvertAxisOrientation,
Expand Down

0 comments on commit e3a9342

Please sign in to comment.