Skip to content

Commit 721551f

Browse files
committed
qDebug -> QgsMessageLog
1 parent 7bce7ea commit 721551f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/3d/qgstessellator.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "qgscurve.h"
1919
#include "qgsgeometry.h"
20+
#include "qgsmessagelog.h"
2021
#include "qgsmultipolygon.h"
2122
#include "qgspoint.h"
2223
#include "qgspolygon.h"
@@ -301,7 +302,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
301302
{
302303
// Failed to fix that. It could be a really tiny geometry... or maybe they gave us
303304
// geometry in unprojected lat/lon coordinates
304-
qDebug() << "geometry's coordinates are too close to each other and simplification failed - skipping";
305+
QgsMessageLog::logMessage( "geometry's coordinates are too close to each other and simplification failed - skipping", "3D" );
305306
}
306307
else
307308
{
@@ -313,7 +314,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
313314
if ( !_check_intersecting_rings( polygon ) )
314315
{
315316
// skip the polygon - it would cause a crash inside poly2tri library
316-
qDebug() << "polygon rings intersect each other - skipping";
317+
QgsMessageLog::logMessage( "polygon rings intersect each other - skipping", "3D" );
317318
return;
318319
}
319320

@@ -423,7 +424,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
423424
}
424425
catch ( ... )
425426
{
426-
qDebug() << "Triangulation failed. Skipping polygon...";
427+
QgsMessageLog::logMessage( "Triangulation failed. Skipping polygon...", "3D" );
427428
}
428429

429430
delete cdt;

0 commit comments

Comments
 (0)