Skip to content
Browse files
Fix enum comparison warning
  • Loading branch information
nyalldawson committed Mar 29, 2018
1 parent b805b60 commit bf252d68d2664d09d1972ade5b1b184f3cff7e12
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/layout/qgslayoutaligner.cpp
@@ -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:
case AlignRight:
case DistributeRight:
return itemBBox.right();
case AlignTop:
case DistributeTop:
case AlignVCenter:
case DistributeVCenter:
case AlignBottom:
case DistributeBottom:
return itemBBox.bottom();
// no warnings

0 comments on commit bf252d6

Please sign in to comment.