mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Use the proper layer when displaying a single waypoint on an atlas.
This commit is contained in:
parent
273a127069
commit
1a66ed0a36
@ -202,6 +202,11 @@ qreal Atlas::zoomFit(const QSize &size, const QRectF &br)
|
|||||||
{
|
{
|
||||||
_zoom = 0;
|
_zoom = 0;
|
||||||
|
|
||||||
|
if (br.isNull()) {
|
||||||
|
_zoom = _zooms.size() - 1;
|
||||||
|
return _zoom;
|
||||||
|
}
|
||||||
|
|
||||||
for (int z = 0; z < _zooms.count(); z++) {
|
for (int z = 0; z < _zooms.count(); z++) {
|
||||||
for (int i = _zooms.at(z).first; i <= _zooms.at(z).second; i++) {
|
for (int i = _zooms.at(z).first; i <= _zooms.at(z).second; i++) {
|
||||||
if (!_bounds.at(i).first.contains(_maps.at(i)->ll2pp(br.center())))
|
if (!_bounds.at(i).first.contains(_maps.at(i)->ll2pp(br.center())))
|
||||||
|
Loading…
Reference in New Issue
Block a user