mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed broken IMG maps after print/PDF export
This commit is contained in:
parent
5b2af9fc9c
commit
4de22d6679
@ -141,6 +141,12 @@ int IMGMap::zoomOut()
|
|||||||
return _zoom;
|
return _zoom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IMGMap::setZoom(int zoom)
|
||||||
|
{
|
||||||
|
_zoom = zoom;
|
||||||
|
updateTransform();
|
||||||
|
}
|
||||||
|
|
||||||
void IMGMap::updateTransform()
|
void IMGMap::updateTransform()
|
||||||
{
|
{
|
||||||
double scale = (2.0 * M_PI * WGS84_RADIUS) / (1<<_zoom);;
|
double scale = (2.0 * M_PI * WGS84_RADIUS) / (1<<_zoom);;
|
||||||
|
@ -21,7 +21,7 @@ public:
|
|||||||
QRectF bounds();
|
QRectF bounds();
|
||||||
|
|
||||||
virtual int zoom() const {return _zoom;}
|
virtual int zoom() const {return _zoom;}
|
||||||
virtual void setZoom(int zoom) {_zoom = zoom;}
|
virtual void setZoom(int zoom);
|
||||||
virtual int zoomFit(const QSize &, const RectC &);
|
virtual int zoomFit(const QSize &, const RectC &);
|
||||||
virtual int zoomIn();
|
virtual int zoomIn();
|
||||||
virtual int zoomOut();
|
virtual int zoomOut();
|
||||||
|
Loading…
Reference in New Issue
Block a user