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 63e61e0 commit df57ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgscolorramplegendnode.cpp
Expand Up @@ -356,7 +356,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 df57ef5

Please sign in to comment.