mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
[3d] Fix crash in terrain generator if DEM raster layer is missing
This commit is contained in:
parent
6e9c2a3d0c
commit
685806bccf
@ -66,7 +66,10 @@ QgsRectangle QgsDemTerrainGenerator::extent() const
|
||||
float QgsDemTerrainGenerator::heightAt( double x, double y, const Qgs3DMapSettings &map ) const
|
||||
{
|
||||
Q_UNUSED( map );
|
||||
return mHeightMapGenerator->heightAt( x, y );
|
||||
if ( mHeightMapGenerator )
|
||||
return mHeightMapGenerator->heightAt( x, y );
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void QgsDemTerrainGenerator::writeXml( QDomElement &elem ) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user