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 github-actions[bot] committed May 2, 2023
1 parent 9d54ae0 commit ee8719c
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 ee8719c

Please sign in to comment.