Skip to content
Permalink
Browse files
Fix crash when rendering polygon layer with marker line
Fixes #46604
  • Loading branch information
nyalldawson committed Dec 23, 2021
1 parent c7b00d6 commit 4922684cf897d23e61174d7a16b6e7ecd51ce8f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgssymbol.cpp
@@ -951,7 +951,7 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont
QgsGeometry temporaryGeometryContainer;
const QgsAbstractGeometry *processedGeometry = nullptr;

const bool isMultiPart = qgsgeometry_cast< const QgsGeometryCollection * >( part ) && qgsgeometry_cast< const QgsGeometryCollection * >( part )->numGeometries() > 1;
const bool isMultiPart = qgsgeometry_cast< const QgsGeometryCollection * >( part );

if ( !isMultiPart )
{

0 comments on commit 4922684

Please sign in to comment.