Navigation Menu

Skip to content

Commit

Permalink
Fix problem with reporting of line number in exception error messages
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6340 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 29, 2006
1 parent 527a0b0 commit 6b84471
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gui/qgscoordinatetransform.cpp
Expand Up @@ -200,7 +200,7 @@ QgsPoint QgsCoordinateTransform::transform(const QgsPoint thePoint,TransformDire
catch(QgsCsException &cse)
{
// rethrow the exception
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw cse;
}

Expand All @@ -220,7 +220,7 @@ QgsPoint QgsCoordinateTransform::transform(const double theX, const double theY=
catch(QgsCsException &cse)
{
// rethrow the exception
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw cse;
}
}
Expand All @@ -246,7 +246,7 @@ QgsRect QgsCoordinateTransform::transform(const QgsRect theRect,TransformDirecti
catch(QgsCsException &cse)
{
// rethrow the exception
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw cse;
}

Expand Down Expand Up @@ -280,7 +280,7 @@ void QgsCoordinateTransform::transformInPlace(double& x, double& y, double& z,
catch(QgsCsException &cse)
{
// rethrow the exception
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw cse;
}
}
Expand All @@ -306,7 +306,7 @@ void QgsCoordinateTransform::transformInPlace(std::vector<double>& x,
catch(QgsCsException &cse)
{
// rethrow the exception
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw cse;
}
}
Expand Down Expand Up @@ -369,7 +369,7 @@ QgsRect QgsCoordinateTransform::transformBoundingBox(const QgsRect rect, Transfo
catch(QgsCsException &cse)
{
// rethrow the exception
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw cse;
}

Expand Down Expand Up @@ -475,7 +475,7 @@ void QgsCoordinateTransform::transformCoords( const int& numPoints, double *x, d
QgsDebugMsg("Projection failed emitting invalid transform signal: " + QString(msg.toLocal8Bit().data()));
#endif
emit invalidTransformInput();
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString(__LINE__));
QgsLogger::warning("Throwing exception " + QString(__FILE__) + QString::number(__LINE__));
throw QgsCsException(msg);
}
// if the result is lat/long, convert the results from radians back
Expand Down

0 comments on commit 6b84471

Please sign in to comment.