Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix windows build
  • Loading branch information
jef-n committed Apr 1, 2016
1 parent c4d9b0a commit 687b6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposernodesitem.cpp
Expand Up @@ -79,15 +79,15 @@ bool QgsComposerNodesItem::addNode( const QPointF &pt,
const double b = pt1.y() - coef * pt1.x();

double distance = std::numeric_limits<double>::max();
if ( isinf( coef ) )
if ( qIsInf( coef ) )
distance = qAbs( pt1.x() - start.x() );
else
{
const double coef2 = ( -1 / coef );
const double b2 = start.y() - coef2 * start.x();

QPointF inter;
if ( isinf( coef2 ) )
if ( qIsInf( coef2 ) )
{
distance = qAbs( pt1.y() - start.y() );
inter.setX( start.x() );
Expand Down

0 comments on commit 687b6fd

Please sign in to comment.