Skip to content

Commit

Permalink
Fix using interpolated line symbol layer for polygon outlines
Browse files Browse the repository at this point in the history
It was doing weird things, and silently reverting back to a blue
simple fill
  • Loading branch information
nyalldawson committed Feb 27, 2023
1 parent 402d303 commit 9396b38
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
Expand Up @@ -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;


Expand Down
5 changes: 0 additions & 5 deletions src/core/symbology/qgsinterpolatedlinerenderer.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/core/symbology/qgsinterpolatedlinerenderer.h
Expand Up @@ -304,7 +304,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;

/**
Expand Down

0 comments on commit 9396b38

Please sign in to comment.