mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
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:
parent
b1c724f819
commit
1c65ea53b5
@ -439,6 +439,13 @@ unsigned char* QgsVectorLayer::drawLineString(unsigned char* feature,
|
||||
pa.setPoint(i, static_cast<int>(round(x[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
|
||||
// polyline, which is good enough for the moment.
|
||||
p->drawPolyline(pa);
|
||||
|
Loading…
x
Reference in New Issue
Block a user