From 1c65ea53b50a77d0c636fdeba13e22dc74282897 Mon Sep 17 00:00:00 2001 From: g_j_m Date: Sun, 24 Apr 2005 11:33:41 +0000 Subject: [PATCH] Add in some debugging code for polylines git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3216 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/qgsvectorlayer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qgsvectorlayer.cpp b/src/qgsvectorlayer.cpp index 05184c5943a..76cb4a01f2f 100644 --- a/src/qgsvectorlayer.cpp +++ b/src/qgsvectorlayer.cpp @@ -439,6 +439,13 @@ unsigned char* QgsVectorLayer::drawLineString(unsigned char* feature, pa.setPoint(i, static_cast(round(x[i])), static_cast(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);