Skip to content

Commit

Permalink
Fix invalid assert condition which will always be true
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and PeterPetrik committed Jan 27, 2020
1 parent 022aaa6 commit 2be9178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshdataprovider.cpp
Expand Up @@ -459,7 +459,7 @@ QgsMeshDatasetValue QgsMesh3dDataBlock::value( int volumeIndex ) const

void QgsMesh3dDataBlock::setValues( const QVector<double> &doubleBuffer )
{
Q_ASSERT( doubleBuffer.size() == isVector() ? 2 * volumesCount() : volumesCount() );
Q_ASSERT( doubleBuffer.size() == ( isVector() ? 2 * volumesCount() : volumesCount() ) );
mDoubleBuffer = doubleBuffer;
}

Expand Down

0 comments on commit 2be9178

Please sign in to comment.