Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Apr 1, 2016
1 parent c4d9b0a commit 687b6fdeaa231e3b97d0c4545c1d5a83dc13573b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposernodesitem.cpp
@@ -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() );

0 comments on commit 687b6fd

Please sign in to comment.
You can’t perform that action at this time.