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 585f04d commit 57060e989acb3155ff603d3cb4b0a76a10770fde
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/mesh/qgsmeshlayerrenderer.cpp
@@ -350,8 +350,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 57060e9

Please sign in to comment.