Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Copy element type when copying QgsMeshSpatialIndex
(This isn't used anywhere currently)
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 9c74b86 commit 991d402
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/mesh/qgsmeshspatialindex.cpp
Expand Up @@ -354,7 +354,8 @@ QgsMeshSpatialIndex::QgsMeshSpatialIndex( const QgsMesh &mesh, QgsFeedback *feed
}

QgsMeshSpatialIndex::QgsMeshSpatialIndex( const QgsMeshSpatialIndex &other ) //NOLINT
: d( other.d )
: mElementType( other.mElementType )
, d( other.d )
{
}

Expand All @@ -363,7 +364,10 @@ QgsMeshSpatialIndex:: ~QgsMeshSpatialIndex() = default; //NOLINT
QgsMeshSpatialIndex &QgsMeshSpatialIndex::operator=( const QgsMeshSpatialIndex &other )
{
if ( this != &other )
{
mElementType = other.mElementType;
d = other.d;
}
return *this;
}

Expand Down

0 comments on commit 991d402

Please sign in to comment.