Skip to content

Commit 687b6fd

Browse files
committed
fix windows build
1 parent c4d9b0a commit 687b6fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/composer/qgscomposernodesitem.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ bool QgsComposerNodesItem::addNode( const QPointF &pt,
7979
const double b = pt1.y() - coef * pt1.x();
8080

8181
double distance = std::numeric_limits<double>::max();
82-
if ( isinf( coef ) )
82+
if ( qIsInf( coef ) )
8383
distance = qAbs( pt1.x() - start.x() );
8484
else
8585
{
8686
const double coef2 = ( -1 / coef );
8787
const double b2 = start.y() - coef2 * start.x();
8888

8989
QPointF inter;
90-
if ( isinf( coef2 ) )
90+
if ( qIsInf( coef2 ) )
9191
{
9292
distance = qAbs( pt1.y() - start.y() );
9393
inter.setX( start.x() );

0 commit comments

Comments
 (0)