Fix using interpolated line symbol layer for polygon outlines

It was doing weird things, and silently reverting back to a blue
simple fill
This commit is contained in:
Nyall Dawson 2023-02-27 14:16:51 +10:00
parent ec33213a5d
commit 9815333dd4
3 changed files with 0 additions and 8 deletions

View File

@ -340,8 +340,6 @@ Creates the symbol layer
virtual void renderPolyline( const QPolygonF &points, QgsSymbolRenderContext &context );
virtual bool isCompatibleWithSymbol( QgsSymbol *symbol ) const;
virtual bool canCauseArtifactsBetweenAdjacentTiles() const;

View File

@ -1215,11 +1215,6 @@ void QgsInterpolatedLineSymbolLayer::renderPolyline( const QPolygonF &points, Qg
}
}
bool QgsInterpolatedLineSymbolLayer::isCompatibleWithSymbol( QgsSymbol *symbol ) const
{
return symbol && symbol->type() == Qgis::SymbolType::Line;
}
bool QgsInterpolatedLineSymbolLayer::canCauseArtifactsBetweenAdjacentTiles() const
{
return true;

View File

@ -302,7 +302,6 @@ class CORE_EXPORT QgsInterpolatedLineSymbolLayer : public QgsLineSymbolLayer
void startFeatureRender( const QgsFeature &feature, QgsRenderContext &context ) override;
void stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context ) override;
void renderPolyline( const QPolygonF &points, QgsSymbolRenderContext &context ) override;
bool isCompatibleWithSymbol( QgsSymbol *symbol ) const override;
bool canCauseArtifactsBetweenAdjacentTiles() const override;
/**