Skip to content


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 c206d29 commit 8c911dd
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;

Expand Down

0 comments on commit 8c911dd

Please sign in to comment.