Skip to content
Permalink
Browse files

Simple line can cause tile artifacts if it's a dashed line

  • Loading branch information
nyalldawson committed Feb 12, 2021
1 parent 080ec98 commit 980d9697a0c450839d0f480bd625d1429c19e47c
@@ -84,6 +84,8 @@ Creates a new QgsSimpleLineSymbolLayer from an SLD XML DOM ``element``.

virtual QColor dxfColor( QgsSymbolRenderContext &context ) const;

virtual bool canCauseArtifactsBetweenAdjacentTiles() const;


Qt::PenStyle penStyle() const;
%Docstring
@@ -635,7 +635,7 @@ void transform1800to1900( QgsProjectFileTransform *pft )
}
}

QgsDebugMsg( pft->dom().toString() );
QgsDebugMsgLevel( pft->dom().toString(), 2 );
}

void transform2200to2300( QgsProjectFileTransform *pft )
@@ -999,6 +999,11 @@ QColor QgsSimpleLineSymbolLayer::dxfColor( QgsSymbolRenderContext &context ) con
return mColor;
}

bool QgsSimpleLineSymbolLayer::canCauseArtifactsBetweenAdjacentTiles() const
{
return mPenStyle != Qt::SolidLine || mUseCustomDashPattern;
}

bool QgsSimpleLineSymbolLayer::alignDashPattern() const
{
return mAlignDashPattern;
@@ -84,6 +84,7 @@ class CORE_EXPORT QgsSimpleLineSymbolLayer : public QgsLineSymbolLayer
double dxfWidth( const QgsDxfExport &e, QgsSymbolRenderContext &context ) const override;
double dxfOffset( const QgsDxfExport &e, QgsSymbolRenderContext &context ) const override;
QColor dxfColor( QgsSymbolRenderContext &context ) const override;
bool canCauseArtifactsBetweenAdjacentTiles() const override;

/**
* Returns the pen style used to render the line (e.g. solid, dashed, etc).

0 comments on commit 980d969

Please sign in to comment.