Fix enum comparison warning

This commit is contained in:
Nyall Dawson 2018-03-29 16:02:24 +10:00
parent b805b60389
commit bf252d68d2

View File

@ -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