Skip to content
Permalink
Browse files
[composer] Fix calculation of world file parameters, make sure world …
…file works correctly for atlas prints
  • Loading branch information
nyalldawson committed Feb 9, 2014
1 parent f15c886 commit d6810e8954d80edc6b625699fcd42542ba1a2952
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/composer/qgscomposition.cpp
@@ -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();

0 comments on commit d6810e8

Please sign in to comment.