Skip to content

Commit

Permalink
Warning debug output when doing dangerous things
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 24, 2017
1 parent 1b6088c commit cfd3913
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit cfd3913

Please sign in to comment.