Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[mesh] Fix mesh line width unit setting is always ignored
- Loading branch information
Showing
with
1 addition
and
2 deletions.
-
+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 ); |
|
|