mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[composer] Fix calculation of world file parameters, make sure world file works correctly for atlas prints
This commit is contained in:
parent
f15c886940
commit
d6810e8954
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user