Skip to content
Permalink
Browse files

Fix rendering when transform errors occur

  • Loading branch information
nyalldawson committed Jul 11, 2020
1 parent c7ef8c8 commit 9c876227428fcade8a3820e08fbe028b10916489
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/core/symbology/qgssymbol.cpp
@@ -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 );

0 comments on commit 9c87622

Please sign in to comment.
You can’t perform that action at this time.