Skip to content

Commit

Permalink
Fix enum comparison warning
Browse files Browse the repository at this point in the history
(cherry-picked from bf252d6)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent 94b7c88 commit 16fa1b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/layout/qgslayoutaligner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ void QgsLayoutAligner::distributeItems( QgsLayout *layout, const QList<QgsLayout
QRectF itemBBox = item->sceneBoundingRect();
switch ( distribution )
{
case AlignLeft:
case DistributeLeft:
return itemBBox.left();
case AlignHCenter:
case DistributeHCenter:
return itemBBox.center().x();
case AlignRight:
case DistributeRight:
return itemBBox.right();
case AlignTop:
case DistributeTop:
return itemBBox.top();
case AlignVCenter:
case DistributeVCenter:
return itemBBox.center().y();
case AlignBottom:
case DistributeBottom:
return itemBBox.bottom();
}
// no warnings
Expand Down

0 comments on commit 16fa1b9

Please sign in to comment.