diff --git a/src/3d/framegraph/qgsframegraph.cpp b/src/3d/framegraph/qgsframegraph.cpp index fa8149b5e1e7..fa0bfddf87ef 100644 --- a/src/3d/framegraph/qgsframegraph.cpp +++ b/src/3d/framegraph/qgsframegraph.cpp @@ -759,8 +759,9 @@ void QgsFrameGraph::setupDepthMapDebugging( bool enabled, Qt::Corner corner, dou void QgsFrameGraph::setSize( QSize s ) { mSize = s; - for ( QgsAbstractRenderView *rv : qAsConst( mRenderViewMap.values() ) ) + for ( QMap::iterator it = mRenderViewMap.begin(); it != mRenderViewMap.end(); ++it ) { + QgsAbstractRenderView *rv = it.value(); rv->updateWindowResize( mSize.width(), mSize.height() ); }