Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix rendering when transform errors occur
  • Loading branch information
nyalldawson committed Jul 11, 2020
1 parent c7ef8c8 commit 9c87622
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/core/symbology/qgssymbol.cpp
Expand Up @@ -834,8 +834,16 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont

if ( !geom.boundingBox().isNull() )
{
const QPointF boundsOrigin = _getPoint( context, QgsPoint( geom.boundingBox().xMinimum(), geom.boundingBox().yMinimum() ) );
context.setTextureOrigin( boundsOrigin );
try
{
const QPointF boundsOrigin = _getPoint( context, QgsPoint( geom.boundingBox().xMinimum(), geom.boundingBox().yMinimum() ) );
if ( std::isfinite( boundsOrigin.x() ) && std::isfinite( boundsOrigin.y() ) )
context.setTextureOrigin( boundsOrigin );
}
catch ( QgsCsException & )
{

}
}

bool tileMapRendering = context.testFlag( QgsRenderContext::RenderMapTile );
Expand Down

0 comments on commit 9c87622

Please sign in to comment.