Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 31, 2024
1 parent d3b5541 commit 9bb5cd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3850,7 +3850,7 @@ QSize QgsWmsProvider::maximumTileSize() const
{
return QSize( capsMaxWidth, capsMaxHeight );
}
else if( mSettings.mStepWidth > 0 && mSettings.mStepHeight > 0 ) //The chosen step size can be higher than the default max size
else if ( mSettings.mStepWidth > 0 && mSettings.mStepHeight > 0 ) //The chosen step size can be higher than the default max size
{
return QSize( mSettings.mStepWidth, mSettings.mStepHeight );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/providers/testqgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ void TestQgsWmsProvider::testMaxTileSize()
QCOMPARE( maxTileSize5.height(), 3000 );

// test that max tile size is set to mStepWidth/mStepHeight if max tile size is not set
QgsWmsProvider provider6( QStringLiteral( "http://localhost:8380/mapserv?xxx&layers=buildings&styles=&format=image/jpg&stepWidth=4000&stepHeight=4000" ), QgsDataProvider::ProviderOptions(), &capabilities);
QgsWmsProvider provider6( QStringLiteral( "http://localhost:8380/mapserv?xxx&layers=buildings&styles=&format=image/jpg&stepWidth=4000&stepHeight=4000" ), QgsDataProvider::ProviderOptions(), &capabilities );
const QSize maxTileSize6 = provider6.maximumTileSize();
QCOMPARE( maxTileSize6.width(), 4000 );
QCOMPARE( maxTileSize6.height(), 4000 );
Expand Down

0 comments on commit 9bb5cd0

Please sign in to comment.