Skip to content
Permalink
Browse files

fix warnings

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11851 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Oct 26, 2009
1 parent 35cc686 commit 8ec28fe014ed860082baa9c5653593665a23da91
Showing with 3 additions and 6 deletions.
  1. +3 −3 src/core/composer/qgscomposermap.cpp
  2. +0 −3 src/ui/qgsoptionsbase.ui
@@ -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;
}
@@ -12,9 +12,6 @@
<property name="windowTitle" >
<string>Options</string>
</property>
<property name="windowIcon" >
<iconset/>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>

0 comments on commit 8ec28fe

Please sign in to comment.
You can’t perform that action at this time.