Skip to content
Permalink
Browse files

[mesh] Fix mesh line width unit setting is always ignored

  • Loading branch information
nyalldawson authored and github-actions committed Feb 23, 2021
1 parent ab59e37 commit 0b9619d362dc42c09471b6e8f36e310d9464652b
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/mesh/qgsmeshlayerrenderer.cpp
@@ -361,8 +361,7 @@ static QPainter *_painterForMeshFrame( QgsRenderContext &context, const QgsMeshR
pen.setCapStyle( Qt::FlatCap );
pen.setJoinStyle( Qt::MiterJoin );

double penWidth = context.convertToPainterUnits( settings.lineWidth(),
QgsUnitTypes::RenderUnit::RenderMillimeters );
double penWidth = context.convertToPainterUnits( settings.lineWidth(), settings.lineWidthUnit() );
pen.setWidthF( penWidth );
pen.setColor( settings.color() );
painter->setPen( pen );

0 comments on commit 0b9619d

Please sign in to comment.