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:
g_j_m 2005-04-15 22:01:45 +00:00
parent ee5a8ef061
commit 550a4e78b9

View File

@ -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)