Add in some debugging code for polylines

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3216 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2005-04-24 11:33:41 +00:00
parent b1c724f819
commit 1c65ea53b5

View File

@ -439,6 +439,13 @@ unsigned char* QgsVectorLayer::drawLineString(unsigned char* feature,
pa.setPoint(i, static_cast<int>(round(x[i])), pa.setPoint(i, static_cast<int>(round(x[i])),
static_cast<int>(round(y[i]))); static_cast<int>(round(y[i])));
#ifdef QGISDEBUGVERBOSE
for (int i = 0; i < pa.size(); ++i)
std::cerr << pa.point(i).x() << ", " << pa.point(i).y()
<< '\n';
std::cerr << '\n';
#endif
// The default pen gives bevelled joins between segements of the // The default pen gives bevelled joins between segements of the
// polyline, which is good enough for the moment. // polyline, which is good enough for the moment.
p->drawPolyline(pa); p->drawPolyline(pa);