diff --git a/src/common/meshmodel.cpp b/src/common/meshmodel.cpp index 6c1a620de..29b20978b 100644 --- a/src/common/meshmodel.cpp +++ b/src/common/meshmodel.cpp @@ -77,7 +77,7 @@ QList MeshDocument::getMeshTags(int meshId) return meshTags; } -void MeshDocument::setCurrentMesh(unsigned int i) +void MeshDocument::setCurrentMesh( int i) { foreach(MeshModel *mmp, meshList) { @@ -93,7 +93,7 @@ void MeshDocument::setCurrentMesh(unsigned int i) } //if i is <0 it means that no currentRaster is set -void MeshDocument::setCurrentRaster(unsigned int i) +void MeshDocument::setCurrentRaster( int i) { if(i<0) { diff --git a/src/common/meshmodel.h b/src/common/meshmodel.h index f764a3d4a..f29af42ff 100644 --- a/src/common/meshmodel.h +++ b/src/common/meshmodel.h @@ -396,10 +396,10 @@ public: MeshModel *getMesh(const char *name); //set the current mesh to be the one at index i of the mesh list - void setCurrentMesh(unsigned int i); + void setCurrentMesh( int i); //set the current raster to be the one at index i of the raster list - void setCurrentRaster(unsigned int i); + void setCurrentRaster( int i); MeshModel *mm() { return currentMesh;