Skip to content
Permalink
Browse files
Fixed compilation with debugging turned on.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6834 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 25, 2007
1 parent 00a43bc commit aa3b63892fd845f042390e3cb206729609db0415
Showing with 3 additions and 9 deletions.
  1. +1 −2 src/app/qgsattributetable.cpp
  2. +2 −7 src/app/qgsmaptoolidentify.cpp
@@ -458,8 +458,7 @@ void QgsAttributeTable::fillTable(QgsVectorLayer* layer)
int fieldcount=provider->fieldCount();
#ifdef QGISDEBUG
for (int l = 0; l < mFields.size(); l++)
QgsDebugMsg("field: " + mFields[l].name() + " | " +
QString::number(mFields[l].isNumeric()) + " | " + mFields[l].type());
QgsDebugMsg("field: " + mFields[l].name() + " | " + QString::number(mFields[l].type()) );
#endif

setNumRows(provider->featureCount() + addedFeatures.size() - deletedFeatures.size());
@@ -362,13 +362,8 @@ void QgsMapToolIdentify::identifyVectorLayer(QgsVectorLayer* layer, const QgsPoi
// only apply changed values if they were edited by the user
if (ad.isDirty(i))
{
#ifdef QGISDEBUG
std::cout << "QgsMapToolIdentify::identifyVectorLayer: found an changed attribute: "
<< old[i].fieldName().toLocal8Bit().data()
<< " = "
<< ad.value(i).toLocal8Bit().data()
<< "." << std::endl;
#endif
QgsDebugMsg("found a changed attribute: " + QString::number(i) + " = " + ad.value(i));

QgsAttributeMap& chattr = changedAttributes[ feat.featureId() ];
chattr[i] = ad.value(i);

0 comments on commit aa3b638

Please sign in to comment.