mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Added some debugging code for polygon trimming. Commented out for the moment
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3164 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
ee5a8ef061
commit
550a4e78b9
@ -486,6 +486,20 @@ unsigned char* QgsVectorLayer::drawPolygon(unsigned char* feature,
|
||||
if (needToTrim)
|
||||
QgsClipper::trimPolygon(*ring);
|
||||
#endif
|
||||
|
||||
/*
|
||||
#if defined(Q_WS_X11)
|
||||
std::cerr << "Variable Q_WS_X11 is defined\n";
|
||||
#else
|
||||
std::cerr << "Variable Q_WS_X11 is not defined\n";
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < ring->size(); ++i)
|
||||
if (std::abs(ring->operator[](i).x()) > QgsClipper::maxX ||
|
||||
std::abs(ring->operator[](i).y()) > QgsClipper::maxY)
|
||||
std::cerr << "Too large: " << ring->operator[](i) << '\n';
|
||||
*/
|
||||
|
||||
// Don't bother if the ring has been trimmed out of
|
||||
// existence.
|
||||
if (ring->size() > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user