Skip to content

Commit 16fa1b9

Browse files
committedApr 2, 2018
Fix enum comparison warning
(cherry-picked from bf252d6)
1 parent 94b7c88 commit 16fa1b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/core/layout/qgslayoutaligner.cpp

Lines changed: 6 additions & 6 deletions
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)
Please sign in to comment.