From 850215f8994a3149dc68080195a5b322ba164ee9 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 17 Sep 2021 13:15:50 +1000 Subject: [PATCH] Add missing cast code for QgsHashedLineSymbolLayer --- python/core/auto_generated/symbology/qgssymbollayer.sip.in | 2 ++ src/core/symbology/qgssymbollayer.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/python/core/auto_generated/symbology/qgssymbollayer.sip.in b/python/core/auto_generated/symbology/qgssymbollayer.sip.in index eedb26dd3350..f34d9dab3521 100644 --- a/python/core/auto_generated/symbology/qgssymbollayer.sip.in +++ b/python/core/auto_generated/symbology/qgssymbollayer.sip.in @@ -48,6 +48,8 @@ class QgsSymbolLayer sipType = sipType_QgsMarkerLineSymbolLayer; else if ( sipCpp->layerType() == "SimpleLine" ) sipType = sipType_QgsSimpleLineSymbolLayer; + else if ( sipCpp->layerType() == "HashLine" ) + sipType = sipType_QgsHashedLineSymbolLayer; else if ( sipCpp->layerType() == "ArrowLine" ) sipType = sipType_QgsArrowSymbolLayer; else if ( sipCpp->layerType() == "InterpolatedLine" ) diff --git a/src/core/symbology/qgssymbollayer.h b/src/core/symbology/qgssymbollayer.h index 1d3953632ef1..b9cc6a1628b6 100644 --- a/src/core/symbology/qgssymbollayer.h +++ b/src/core/symbology/qgssymbollayer.h @@ -87,6 +87,8 @@ class CORE_EXPORT QgsSymbolLayer sipType = sipType_QgsMarkerLineSymbolLayer; else if ( sipCpp->layerType() == "SimpleLine" ) sipType = sipType_QgsSimpleLineSymbolLayer; + else if ( sipCpp->layerType() == "HashLine" ) + sipType = sipType_QgsHashedLineSymbolLayer; else if ( sipCpp->layerType() == "ArrowLine" ) sipType = sipType_QgsArrowSymbolLayer; else if ( sipCpp->layerType() == "InterpolatedLine" )