Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11905 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 3, 2009
1 parent a8fe746 commit 01bbefc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/composer/qgscomposerpicture.cpp
Expand Up @@ -73,10 +73,6 @@ void QgsComposerPicture::paint( QPainter* painter, const QStyleOptionGraphicsIte

double boundRectWidthMM = boundRect.width() / newDpi * 25.4;
double boundRectHeightMM = boundRect.height() / newDpi * 25.4;
double unrotatedBoundImageWidth = boundRect.width();
double unrotatedBoundImageHeight = boundRect.height();
double unrotatedBoundImageWidthMM = unrotatedBoundImageWidth / newDpi * 25.4;
double unrotatedBoundImageHeightMM = unrotatedBoundImageHeight / newDpi * 25.4;
double rotatedBoundImageWidth = boundRect.width();
double rotatedBoundImageHeight = boundRect.height();
imageSizeConsideringRotation( rotatedBoundImageWidth, rotatedBoundImageHeight );
Expand Down Expand Up @@ -211,8 +207,10 @@ bool QgsComposerPicture::imageSizeConsideringRotation( double& width, double& he
double y2 = 0;
double x3 = width;
double y3 = height;
#if 0
double x4 = 0;
double y4 = height;
#endif

if ( !cornerPointOnRotatedAndScaledRect( x1, y1, width, height ) )
{
Expand All @@ -226,11 +224,12 @@ bool QgsComposerPicture::imageSizeConsideringRotation( double& width, double& he
{
return false;
}
/*
#if 0
if(!cornerPointOnRotatedAndScaledRect(x4, y4, width, height))
{
return false;
}*/
}
#endif

width = sqrt(( x2 - x1 ) * ( x2 - x1 ) + ( y2 - y1 ) * ( y2 - y1 ) );
height = sqrt(( x3 - x2 ) * ( x3 - x2 ) + ( y3 - y2 ) * ( y3 - y2 ) );
Expand Down

0 comments on commit 01bbefc

Please sign in to comment.