Skip to content
Permalink
Browse files

Warning debug output when doing dangerous things

  • Loading branch information
m-kuhn committed Oct 24, 2017
1 parent 1b6088c commit cfd3913685eda1280a97516be19b3914666fb835
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/wms/qgswmsprovider.cpp
@@ -611,7 +611,10 @@ static void _drawDebugRect( QPainter &p, const QRectF &rect, const QColor &color

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

// compose the URL query string for the WMS server.

0 comments on commit cfd3913

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