Skip to content

Commit bf252d6

Browse files
committed
Fix enum comparison warning
1 parent b805b60 commit bf252d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/layout/qgslayoutaligner.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ void QgsLayoutAligner::distributeItems( QgsLayout *layout, const QList<QgsLayout
102102
QRectF itemBBox = item->sceneBoundingRect();
103103
switch ( distribution )
104104
{
105-
case AlignLeft:
105+
case DistributeLeft:
106106
return itemBBox.left();
107-
case AlignHCenter:
107+
case DistributeHCenter:
108108
return itemBBox.center().x();
109-
case AlignRight:
109+
case DistributeRight:
110110
return itemBBox.right();
111-
case AlignTop:
111+
case DistributeTop:
112112
return itemBBox.top();
113-
case AlignVCenter:
113+
case DistributeVCenter:
114114
return itemBBox.center().y();
115-
case AlignBottom:
115+
case DistributeBottom:
116116
return itemBBox.bottom();
117117
}
118118
// no warnings

0 commit comments

Comments
 (0)