From 32ceff37f93f05da7af64c70a69e232e4feee489 Mon Sep 17 00:00:00 2001 From: jef Date: Mon, 26 Oct 2009 15:17:43 +0000 Subject: [PATCH] fix warnings git-svn-id: http://svn.osgeo.org/qgis/trunk@11851 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/core/composer/qgscomposermap.cpp | 6 +++--- src/ui/qgsoptionsbase.ui | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/composer/qgscomposermap.cpp b/src/core/composer/qgscomposermap.cpp index 63339085a1e..b9d7ad39cee 100644 --- a/src/core/composer/qgscomposermap.cpp +++ b/src/core/composer/qgscomposermap.cpp @@ -1036,7 +1036,7 @@ int QgsComposerMap::xGridLines( QList< QPair< double, QLineF > >& lines ) const QRectF mapBoundingRect = mapPolygon.boundingRect(); double currentLevel = ( int )(( mapBoundingRect.top() - mGridOffsetY ) / mGridIntervalY + 1.0 ) * mGridIntervalY + mGridOffsetY; - if ( !mRotation > 0.0 ) + if ( mRotation <= 0.0 ) { //no rotation. Do it 'the easy way' @@ -1101,7 +1101,7 @@ int QgsComposerMap::yGridLines( QList< QPair< double, QLineF > >& lines ) const QRectF mapBoundingRect = mapPolygon.boundingRect(); double currentLevel = ( int )(( mapBoundingRect.left() - mGridOffsetX ) / mGridIntervalX + 1.0 ) * mGridIntervalX + mGridOffsetX; - if ( !mRotation > 0.0 ) + if ( mRotation <= 0.0 ) { //no rotation. Do it 'the easy way' double xCanvasCoord; @@ -1312,7 +1312,7 @@ void QgsComposerMap::requestedExtent( QgsRectangle& extent ) const double QgsComposerMap::mapUnitsToMM() const { double extentWidth = mExtent.width(); - if ( !extentWidth > 0 ) + if ( extentWidth <= 0 ) { return 1; } diff --git a/src/ui/qgsoptionsbase.ui b/src/ui/qgsoptionsbase.ui index 7bfbe56ef18..6e33a994282 100644 --- a/src/ui/qgsoptionsbase.ui +++ b/src/ui/qgsoptionsbase.ui @@ -12,9 +12,6 @@ Options - - - true