Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11851 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 26, 2009
1 parent 08cdd0b commit 32ceff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -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'

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
3 changes: 0 additions & 3 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -12,9 +12,6 @@
<property name="windowTitle" >
<string>Options</string>
</property>
<property name="windowIcon" >
<iconset/>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
Expand Down

0 comments on commit 32ceff3

Please sign in to comment.