Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some more missing tiles when vtpk archive does not contain a file…
… which would otherwise be empty
  • Loading branch information
nyalldawson committed May 22, 2023
1 parent 327a069 commit 7ad16b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/vectortile/qgsvtpktiles.cpp
Expand Up @@ -457,7 +457,8 @@ QByteArray QgsVtpkTiles::tileData( int z, int x, int y )
const size_t len = stat.size;
if ( len <= tileIndexOffset )
{
QgsMessageLog::logMessage( QObject::tr( "Cannot read gzip contents at offset %1: %2" ).arg( tileIndexOffset ).arg( fileName ) );
// seems this should be treated as "no content" here, rather then a broken VTPK
res = QByteArray( "" );
}
else
{
Expand Down

0 comments on commit 7ad16b7

Please sign in to comment.