Skip to content

Commit

Permalink
fix some warnings and maybe fix OSX build
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11238 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 1, 2009
1 parent 2cb735b commit 7bc1a64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/plugins/interpolation/qgsinterpolationdialog.cpp
Expand Up @@ -146,6 +146,7 @@ void QgsInterpolationDialog::on_buttonBox_accepted()
if ( interpolationAttString == "Z_COORD" )
{
currentLayerData.zCoordInterpolation = true;
currentLayerData.interpolationAttribute = -1;
}
else
{
Expand Down
10 changes: 8 additions & 2 deletions src/plugins/interpolation/qgstininterpolator.cpp
Expand Up @@ -25,6 +25,11 @@
#include "qgsvectorlayer.h"
#include <QProgressDialog>

#ifndef Q_OS_MACX
#include <cmath>
#else
#include <math.h>
#endif
#ifdef WIN32
#include <float.h>
#define isnan(f) _isnan(f)
Expand Down Expand Up @@ -243,10 +248,11 @@ int QgsTINInterpolator::insertData( QgsFeature* f, bool zCoord, int attr, InputT
}
break;
}
default:
//todo: add the same for multiline, polygon, multipolygon
break;
}

//todo: add the same for multiline, polygon, multipolygon

return 0;
}

0 comments on commit 7bc1a64

Please sign in to comment.