Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 aa3b638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsattributetable.cpp
Expand Up @@ -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());
Expand Down
9 changes: 2 additions & 7 deletions src/app/qgsmaptoolidentify.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit aa3b638

Please sign in to comment.