Skip to content

Commit

Permalink
[composer] Fix calculation of world file parameters, make sure world …
Browse files Browse the repository at this point in the history
…file works correctly for atlas prints
  • Loading branch information
nyalldawson committed Feb 9, 2014
1 parent f15c886 commit d6810e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/composer/qgscomposition.cpp
Expand Up @@ -2373,10 +2373,10 @@ void QgsComposition::computeWorldFileParameters( double& a, double& b, double& c
return;
}

QRectF brect = mWorldFileMap->boundingRect();
QgsRectangle extent = mWorldFileMap->extent();
QRectF brect = mWorldFileMap->mapRectToScene( mWorldFileMap->rect() );
QgsRectangle extent = *mWorldFileMap->currentMapExtent();

double alpha = mWorldFileMap->rotation() / 180 * M_PI;
double alpha = mWorldFileMap->mapRotation() / 180 * M_PI;

double xr = extent.width() / brect.width();
double yr = extent.height() / brect.height();
Expand Down

0 comments on commit d6810e8

Please sign in to comment.