File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,14 @@ void QgsComposerPicture::recalculate()
293
293
294
294
// Angle between vertical in picture space and the vector
295
295
// from center to upper left corner of the picture
296
- double anglePicture = atan2 ( box.width (), box.height () );
296
+ double anglePicture = atan2 ( ( double ) box.width (), ( double ) box.height () );
297
297
298
298
// Angle (clockwise) between horizontal in paper space
299
299
// and the vector from center to upper left corner of the picture
300
300
double anglePaper = PI / 2 - anglePicture - angle;
301
301
302
302
// Distance from center to upper left corner in canvas units
303
- double r = sqrt ( mWidth *mWidth /4 + mHeight *mHeight /4 );
303
+ double r = sqrt (( double )( mWidth *mWidth /4 + mHeight *mHeight /4 ) );
304
304
305
305
// Position of upper left corner in map
306
306
int dx = (int ) ( r * cos ( anglePaper ) );
You can’t perform that action at this time.
0 commit comments