mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix enum comparison warning
This commit is contained in:
parent
b805b60389
commit
bf252d68d2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user