Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix misleading error message
  • Loading branch information
nyalldawson committed Jul 27, 2018
1 parent a38db47 commit b94745b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -612,7 +612,7 @@ static void _drawDebugRect( QPainter &p, const QRectF &rect, const QColor &color

QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, int pixelHeight, QgsRasterBlockFeedback *feedback )
{
if ( qApp && qApp->thread() != QThread::currentThread() )
if ( qApp && qApp->thread() == QThread::currentThread() )
{
QgsDebugMsg( "Trying to draw a WMS image on the main thread. Stop it!" );
}
Expand Down

0 comments on commit b94745b

Please sign in to comment.