Skip to content
Permalink
Browse files

Fix misleading error message

  • Loading branch information
nyalldawson committed Jul 27, 2018
1 parent a38db47 commit b94745b073009f4438631af65ac966ccd49e0d44
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
@@ -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!" );
}

0 comments on commit b94745b

Please sign in to comment.
You can’t perform that action at this time.