Uncomment assert

This commit is contained in:
Sergio Martins
2020-05-07 23:05:59 +01:00
parent d2dca56ce6
commit 09026fd312

View File

@@ -2284,7 +2284,7 @@ QVector<int> ItemContainer::calculateSqueezes(SizingInfo::List::ConstIterator be
void ItemContainer::shrinkNeighbours(int index, SizingInfo::List &sizes, int side1Amount, int side2Amount)
{
Q_ASSERT(side1Amount > 0 || side2Amount > 0);
//Q_ASSERT(side1Growth >= 0 && side2Growth >= 0); // never negative
Q_ASSERT(side1Amount >= 0 && side2Amount >= 0); // never negative
if (side1Amount > 0) {
auto begin = sizes.cbegin();