Skip to content

Commit 771c57d

Browse files
author
jef
committed
fix warning (and snapping bug)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10012 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3200e3e commit 771c57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/composer/qgscomposition.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ void QgsComposition::sortZList()
589589

590590
QPointF QgsComposition::snapPointToGrid( const QPointF& scenePoint ) const
591591
{
592-
if ( !mSnapToGrid || ( !mSnapGridResolution > 0 ) )
592+
if ( !mSnapToGrid || mSnapGridResolution <= 0 )
593593
{
594594
return scenePoint;
595595
}

0 commit comments

Comments
 (0)