Skip to content

Commit

Permalink
Ensure that snap lines show for whole layout
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 6, 2017
1 parent d65a18c commit 9ae9624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layout/qgslayoutsnapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,13 @@ double QgsLayoutSnapper::snapPointsToItems( const QList<double> &points, Qt::Ori
{
case Qt::Vertical:
{
snapLine->setLine( QLineF( 0, closest, 300, closest ) );
snapLine->setLine( QLineF( -100000, closest, 100000, closest ) );
break;
}

case Qt::Horizontal:
{
snapLine->setLine( QLineF( closest, 0, closest, 300 ) );
snapLine->setLine( QLineF( closest, -100000, closest, 100000 ) );
break;
}
}
Expand Down

0 comments on commit 9ae9624

Please sign in to comment.