Skip to content
Permalink
Browse files

Fix invalid assert condition which will always be true

  • Loading branch information
nyalldawson authored and PeterPetrik committed Jan 27, 2020
1 parent 022aaa6 commit 2be9178704c47e1a28fcd18ed9b80eb9605bcaef
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/mesh/qgsmeshdataprovider.cpp
@@ -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;
}

0 comments on commit 2be9178

Please sign in to comment.
You can’t perform that action at this time.