Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update qgscolorramplegendnode.cpp
fix he horizontal legend has an incorrect position when the label is on the right side
  • Loading branch information
alingkumo authored and nyalldawson committed May 2, 2023
1 parent 9d54ae0 commit 1fb89dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgscolorramplegendnode.cpp
Expand Up @@ -352,7 +352,7 @@ QSizeF QgsColorRampLegendNode::drawSymbol( const QgsLegendSettings &settings, It

case Qt::AlignRight:
labelXMin = ctx->columnRight - rampWidth;
labelXMin = ctx->columnRight;
labelXMax = ctx->columnRight;
break;
}

Expand Down

0 comments on commit 1fb89dc

Please sign in to comment.