Add missing copyright header

This commit is contained in:
Martin Dobias 2019-03-18 16:11:08 +01:00
parent c9ab24f1ad
commit 407952f95b
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,18 @@
/***************************************************************************
qgsonlineterraingenerator.cpp
--------------------------------------
Date : March 2019
Copyright : (C) 2019 by Martin Dobias
Email : wonder dot sk at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qgsonlineterraingenerator.h"
#include "qgsdemterraintileloader_p.h"

View File

@ -73,7 +73,7 @@ double QgsTerrainDownloader::findBestTileResolution( double requestedMupp )
void QgsTerrainDownloader::tileImageToHeightMap( const QImage &img, QByteArray &heightMap )
{
// assuming ARGB preformatted but with alpha 255
// assuming ARGB premultiplied but with alpha 255
const QRgb *rgb = reinterpret_cast<const QRgb *>( img.constBits() );
int count = img.width() * img.height();
heightMap.resize( sizeof( float ) * count );