Skip to content

Commit 01bbefc

Browse files
author
jef
committedNov 3, 2009

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎src/core/composer/qgscomposerpicture.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ void QgsComposerPicture::paint( QPainter* painter, const QStyleOptionGraphicsIte
7373

7474
double boundRectWidthMM = boundRect.width() / newDpi * 25.4;
7575
double boundRectHeightMM = boundRect.height() / newDpi * 25.4;
76-
double unrotatedBoundImageWidth = boundRect.width();
77-
double unrotatedBoundImageHeight = boundRect.height();
78-
double unrotatedBoundImageWidthMM = unrotatedBoundImageWidth / newDpi * 25.4;
79-
double unrotatedBoundImageHeightMM = unrotatedBoundImageHeight / newDpi * 25.4;
8076
double rotatedBoundImageWidth = boundRect.width();
8177
double rotatedBoundImageHeight = boundRect.height();
8278
imageSizeConsideringRotation( rotatedBoundImageWidth, rotatedBoundImageHeight );
@@ -211,8 +207,10 @@ bool QgsComposerPicture::imageSizeConsideringRotation( double& width, double& he
211207
double y2 = 0;
212208
double x3 = width;
213209
double y3 = height;
210+
#if 0
214211
double x4 = 0;
215212
double y4 = height;
213+
#endif
216214

217215
if ( !cornerPointOnRotatedAndScaledRect( x1, y1, width, height ) )
218216
{
@@ -226,11 +224,12 @@ bool QgsComposerPicture::imageSizeConsideringRotation( double& width, double& he
226224
{
227225
return false;
228226
}
229-
/*
227+
#if 0
230228
if(!cornerPointOnRotatedAndScaledRect(x4, y4, width, height))
231229
{
232230
return false;
233-
}*/
231+
}
232+
#endif
234233

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

0 commit comments

Comments
 (0)
Please sign in to comment.