Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_minAMSLAltitude is always zero #9070

Closed
remster opened this issue Sep 14, 2020 · 0 comments
Closed

_minAMSLAltitude is always zero #9070

remster opened this issue Sep 14, 2020 · 0 comments
Assignees

Comments

@remster
Copy link
Contributor

remster commented Sep 14, 2020

Expected Behavior

Please tell us what should happen as detailed as possible.
TransectStyleComplexItem::minAMSLAltitude() should return minimal altitude seen in the survey

Current Behavior

Owing to how it's initialised:

        _minAMSLAltitude = 0;
        _maxAMSLAltitude = 0;
        for (const QList<CoordInfo_t>& transect: _transects) {
            for (const CoordInfo_t& coordInfo: transect) {
                _minAMSLAltitude = qMin(_minAMSLAltitude, coordInfo.coord.altitude());
                _maxAMSLAltitude = qMax(_maxAMSLAltitude, coordInfo.coord.altitude());
            }
        }

it's always zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants