Skip to content

Commit 25accbc

Browse files
committed
Fix OGC test getmap:each-format mode for 1bit/8bit/16bit
1 parent c43cd99 commit 25accbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/services/wms/qgswmsutils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace QgsWms
9494
QRegularExpression::CaseInsensitiveOption );
9595

9696
QRegularExpressionMatch match = modeExpr.match( format );
97-
QString mode = match.captured();
97+
QString mode = match.captured( 1 );
9898
if ( mode.compare( QLatin1String( "16bit" ), Qt::CaseInsensitive ) == 0 )
9999
return PNG16;
100100
if ( mode.compare( QLatin1String( "8bit" ), Qt::CaseInsensitive ) == 0 )

0 commit comments

Comments
 (0)